Browse Source

js: use jQuery .find() (#4343)

Hassan Amouhzi 7 years ago
parent
commit
864761c2d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/js/gogs.js

+ 1 - 1
public/js/gogs.js

@@ -341,7 +341,7 @@ function initRepository() {
     if ($('.repository.view.issue').length > 0) {
         // Edit issue title
         var $issueTitle = $('#issue-title');
-        var $editInput = $('#edit-title-input input');
+        var $editInput = $('#edit-title-input').find('input');
         var editTitleToggle = function () {
             $issueTitle.toggle();
             $('.not-in-edit').toggle();