mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	js: fix comment issue status button title change
This commit is contained in:
		@@ -509,7 +509,7 @@ function initRepository() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // Change status
 | 
					        // Change status
 | 
				
			||||||
        var $statusButton = $('#status-button');
 | 
					        var $statusButton = $('#status-button');
 | 
				
			||||||
        $('#edit_area').keyup(function () {
 | 
					        $('#comment-form .edit_area').keyup(function () {
 | 
				
			||||||
            if ($(this).val().length == 0) {
 | 
					            if ($(this).val().length == 0) {
 | 
				
			||||||
                $statusButton.text($statusButton.data('status'))
 | 
					                $statusButton.text($statusButton.data('status'))
 | 
				
			||||||
            } else {
 | 
					            } 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 simpleMDEditor;
 | 
				
			||||||
var codeMirrorEditor;
 | 
					var codeMirrorEditor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1365,7 +1342,6 @@ $(document).ready(function () {
 | 
				
			|||||||
    initInstall();
 | 
					    initInstall();
 | 
				
			||||||
    initRepository();
 | 
					    initRepository();
 | 
				
			||||||
    initWikiForm();
 | 
					    initWikiForm();
 | 
				
			||||||
    initIssueForm();
 | 
					 | 
				
			||||||
    initEditForm();
 | 
					    initEditForm();
 | 
				
			||||||
    initEditor();
 | 
					    initEditor();
 | 
				
			||||||
    initOrganization();
 | 
					    initOrganization();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user