Browse Source

js: fix jQuery error

ᴜɴᴋɴᴡᴏɴ 4 years ago
parent
commit
344b784d69
3 changed files with 6 additions and 7 deletions
  1. 1 2
      .editorconfig
  2. 4 4
      internal/assets/public/public_gen.go
  3. 1 1
      public/js/gogs.js

+ 1 - 2
.editorconfig

@@ -21,5 +21,4 @@ indent_style = space
 indent_size = 2
 
 [*.js]
-indent_style = tab
-indent_size = 4
+indent_size = 2

File diff suppressed because it is too large
+ 4 - 4
internal/assets/public/public_gen.go


+ 1 - 1
public/js/gogs.js

@@ -1282,7 +1282,7 @@ $(document).ready(function () {
             headers: {
                 'X-AJAX': "true"
             }
-        }).success(function (data, status, request) {
+        }).done(function (data, status, request) {
             $(data).insertBefore($this);
 
             // Update new URL or remove self if no more feeds

Some files were not shown because too many files changed in this diff