Browse Source

#98 - button auto-detection for bx_loading

Alex Trofimov 12 years ago
parent
commit
1c13d4061b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      inc/js/functions.js

+ 5 - 0
inc/js/functions.js

@@ -201,6 +201,11 @@ function bx_loading (elem, b) {
 
     var block = $(elem);
 
+    if (block.hasClass('bx-btn')) {
+        bx_loading_btn (block, b);
+        return;
+    }
+
     if (1 == b || true == b) {
 
         bx_loading_content(block, b);