Browse Source

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

pull/4361/head
Hassan Amouhzi 8 years ago committed by 无闻
parent
commit
864761c2d0
  1. 2
      public/js/gogs.js

2
public/js/gogs.js

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

Loading…
Cancel
Save