|
@@ -8,7 +8,7 @@
|
|
|
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
|
|
|
<link type="text/css" rel="stylesheet" href="css/style.min.css" media="screen,projection"/>
|
|
|
<link type="text/css" rel="stylesheet" href="css/google-code-prettify/desert.css"/>
|
|
|
- <title>Titre</title>
|
|
|
+ <title>Electronotes</title>
|
|
|
</head>
|
|
|
<body>
|
|
|
<!-- Navbar -->
|
|
@@ -70,13 +70,16 @@
|
|
|
const tooltip = M.Tooltip.init(document.querySelectorAll('.tooltipped'))[0];
|
|
|
// Load markdown editor
|
|
|
mdEditor = loadMarkdownEditor();
|
|
|
- // Load data if update and markdown editor
|
|
|
+ // Load data if update
|
|
|
if (GET.id) {
|
|
|
loadData().then(data => {
|
|
|
$('#title').val(data[GET.id].title);
|
|
|
mdEditor.value(data[GET.id].content);
|
|
|
M.updateTextFields();
|
|
|
});
|
|
|
+ document.title = 'Electronotes - Modification';
|
|
|
+ } else {
|
|
|
+ document.title = 'Electronotes - Création';
|
|
|
}
|
|
|
});
|
|
|
|