浏览代码

HUE-2005 [core] "Did you know?" box blocks form on login page

Added path test on jHueTour plugin
Enrico Berti 11 年之前
父节点
当前提交
a84eff5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/static/js/jquery.tour.js

+ 1 - 1
desktop/core/static/js/jquery.tour.js

@@ -178,7 +178,7 @@
           _toursHtml += '<li>' + _this.options.labels.NO_AVAILABLE_TOURS + '</li>';
         }
       }
-      if (_added > 0 && typeof $.totalStorage !== "undefined" && ($.totalStorage("jHueTourHideModal") == null || $.totalStorage("jHueTourHideModal") == false)) {
+      if (_added > 0 && typeof $.totalStorage !== "undefined" && ($.totalStorage("jHueTourHideModal") == null || $.totalStorage("jHueTourHideModal") == false) && !RegExp("/accounts/login").test(location.pathname)) {
         $(document).ready(function () {
           $("#jHueTourModal").modal();
           $.totalStorage("jHueTourHideModal", true);