Browse Source

#3299 don’t pop up confirm box when leave on signin page

Unknwon 8 years ago
parent
commit
c2fb01a257
1 changed files with 1 additions and 0 deletions
  1. 1 0
      public/js/gogs.js

+ 1 - 0
public/js/gogs.js

@@ -1117,5 +1117,6 @@ $(window).load(function () {
 });
 
 $(function() {
+    if ($('.user.signin').length >0) return;
 	$('form').areYouSure();
 });