Sfoglia il codice sorgente

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

Unknwon 8 anni fa
parent
commit
c2fb01a257
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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();
 });