diff options
author | Unknwon <u@gogs.io> | 2016-08-30 14:37:46 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-30 14:37:46 -0700 |
commit | c0c1a4b01b4dee3cc85d26f4081ff0a456a16b38 (patch) | |
tree | 7527fdd3471ef425ded4d4e95a0423eb1d9b8e0a /public | |
parent | 47a3243ff1b3da1b435d9390e578752f3a74ae8e (diff) | |
download | gitea-c0c1a4b01b4dee3cc85d26f4081ff0a456a16b38.tar.gz gitea-c0c1a4b01b4dee3cc85d26f4081ff0a456a16b38.zip |
js: fix comment issue status button title change
Diffstat (limited to 'public')
-rw-r--r-- | public/js/gogs.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index c9f621745b..6faa71e739 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -509,7 +509,7 @@ function initRepository() { // Change status var $statusButton = $('#status-button'); - $('#edit_area').keyup(function () { + $('#comment-form .edit_area').keyup(function () { if ($(this).val().length == 0) { $statusButton.text($statusButton.data('status')) } else { @@ -616,29 +616,6 @@ function initWikiForm() { } } -function initIssueForm() { - var $editArea = $('.repository.issue textarea.edit_area'); - if ($editArea.length > 0) { - $editArea.each(function (i, edit_area) { - new SimpleMDE({ - autoDownloadFontAwesome: false, - element: edit_area[0], - forceSync: true, - renderingConfig: { - singleLineBreaks: false - }, - indentWithTabs: false, - tabSize: 4, - spellChecker: false, - toolbar: ["bold", "italic", "strikethrough", "|", - "code", "quote", "|", - "unordered-list", "ordered-list", "|", - "link", "image", "table"] - }) - }); - } -} - var simpleMDEditor; var codeMirrorEditor; @@ -1365,7 +1342,6 @@ $(document).ready(function () { initInstall(); initRepository(); initWikiForm(); - initIssueForm(); initEditForm(); initEditor(); initOrganization(); |