瀏覽代碼

fix #2190 fix links of menus

Shinsuke Sugaya 6 年之前
父節點
當前提交
c88979a369
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/main/webapp/js/help.js
  2. 1 1
      src/main/webapp/js/search.js

+ 1 - 1
src/main/webapp/js/help.js

@@ -11,7 +11,7 @@ $(function() {
   });
   });
 
 
   $(document).on("click touchend", function(e) {
   $(document).on("click touchend", function(e) {
-    if (!$(e.target).closest("#searchOptions, #searchOptionsButton").length) {
+    if (!$(e.target).closest("#searchOptions, [data-toggle='control-options']").length) {
       $("#searchOptions").removeClass("active");
       $("#searchOptions").removeClass("active");
     }
     }
   });
   });

+ 1 - 1
src/main/webapp/js/search.js

@@ -15,7 +15,7 @@ $(function() {
   });
   });
 
 
   $(document).on("click touchend", function(e) {
   $(document).on("click touchend", function(e) {
-    if (!$(e.target).closest("#searchOptions, #searchOptionsButton").length) {
+    if (!$(e.target).closest("#searchOptions, [data-toggle='control-options']").length) {
       $("#searchOptions").removeClass("active");
       $("#searchOptions").removeClass("active");
     }
     }
   });
   });