summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-21 14:36:26 +0800
committerUnknwon <u@gogs.io>2016-07-21 14:36:26 +0800
commitc2fb01a257cfcddf5dc279fcd66175280778f7a9 (patch)
tree8a878a127bcc7a3f7477ea2d30aa82915717e7ac
parent5761342f3263b909448b515ab7700d1a8ec36ded (diff)
downloadgitea-c2fb01a257cfcddf5dc279fcd66175280778f7a9.tar.gz
gitea-c2fb01a257cfcddf5dc279fcd66175280778f7a9.zip
#3299 don’t pop up confirm box when leave on signin page
-rw-r--r--public/js/gogs.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 71e2205f2f..bf27d1584e 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -1117,5 +1117,6 @@ $(window).load(function () {
});
$(function() {
+ if ($('.user.signin').length >0) return;
$('form').areYouSure();
});