Browse Source

Update 014-mailcow.js

André Peters 6 years ago
parent
commit
7c5094b8ec
1 changed files with 7 additions and 1 deletions
  1. 7 1
      data/web/js/build/014-mailcow.js

+ 7 - 1
data/web/js/build/014-mailcow.js

@@ -113,11 +113,17 @@ $(document).ready(function() {
     if ($(this).is("a")) {
       $(this).removeAttr("data-toggle");
       $(this).removeAttr("data-target");
+      $(this).removeAttr("data-action");
+      $(this).click(function(event) {
+        event.preventDefault();
+      });
     }
     if ($(this).hasClass('btn-group')) {
       $(this).find('a').each(function(){
         $(this).removeClass('dropdown-toggle')
           .removeAttr('data-toggle')
+          .removeAttr('data-target')
+          .removeAttr('data-action')
           .removeAttr('id')
           .attr("disabled", true);
         $(this).click(function(event) {
@@ -147,7 +153,7 @@ $(document).ready(function() {
     }
     $(this).data("toggle", "tooltip");
     $(this).attr("title", lang_acl.prohibited);
-    $(this).tooltip(); 
+    $(this).tooltip();
   });
 
   // disable submit after submitting form (not API driven buttons)