diff --git a/views/admin_raw.ejs b/views/admin_raw.ejs index 09555ec..33a7171 100644 --- a/views/admin_raw.ejs +++ b/views/admin_raw.ejs @@ -19,11 +19,13 @@ window.onEditorLoaded(function () { $('form').on('submit', function () { input.val(editor.getValue()); }); + + $('#submit_button').removeClass('disabled'); });
- +
<% include admin_footer %> diff --git a/views/article.ejs b/views/article.ejs index da36438..3386e33 100644 --- a/views/article.ejs +++ b/views/article.ejs @@ -102,7 +102,7 @@
-
@@ -119,6 +119,8 @@ var input = document.getElementsByName(name)[0]; editor.editor = window.createMarkdownEditor(editorElement, editor.defaultValue, input); } + + $('#submit_button').removeClass('disabled'); }); <% } %> diff --git a/views/article_edit.ejs b/views/article_edit.ejs index 3f2fe87..a424515 100644 --- a/views/article_edit.ejs +++ b/views/article_edit.ejs @@ -40,7 +40,7 @@
-
@@ -59,6 +59,8 @@ window.onEditorLoaded(function () { var input = document.getElementsByName(name)[0]; editor.editor = window.createMarkdownEditor(editorElement, editor.defaultValue, input); } + + $('#submit_button').removeClass('disabled'); }); $(function () { diff --git a/views/contest_edit.ejs b/views/contest_edit.ejs index ffe8d80..6615ec6 100644 --- a/views/contest_edit.ejs +++ b/views/contest_edit.ejs @@ -89,7 +89,7 @@ -
+