Skip to content

Commit

Permalink
js: fix comment issue status button title change
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Aug 30, 2016
1 parent 47a3243 commit c0c1a4b
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions public/js/gogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -1365,7 +1342,6 @@ $(document).ready(function () {
initInstall();
initRepository();
initWikiForm();
initIssueForm();
initEditForm();
initEditor();
initOrganization();
Expand Down

0 comments on commit c0c1a4b

Please sign in to comment.