Browse Source

210902 fix

yukyo0821 3 years ago
parent
commit
8c3086637d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      backstage/static/js/editor.js

+ 2 - 0
backstage/static/js/editor.js

@@ -166,6 +166,8 @@ submitButton.onclick = function () {
     //console.log('Article data: ', outputData);
 
     var mdContent = GetMdHeader();
+    mdContent = mdContent.replace('draft: ' + (!$('#cdraft').is(':checked')), 'draft: ' + $('#cdraft').val())
+    //alert(mdContent);
     /*
     for (var frontMatter of frontMatters) {
       mdContent += frontMatter + '\n';