Browse Source

fixed lu busy

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
c4a405fba6
2 changed files with 6 additions and 6 deletions
  1. 0
    2
      src/lubusy.css
  2. 6
    4
      src/lubusy.js

+ 0
- 2
src/lubusy.css View File

@@ -4,7 +4,6 @@
4 4
     left:0px;
5 5
     right:0px;
6 6
     bottom:0px;
7
-    z-index:1070;
8 7
 }
9 8
 
10 9
 .lu-busy-animation.ng-hide-add,
@@ -75,7 +74,6 @@
75 74
 .lu-busy-default-sign{
76 75
     display: inline-block;
77 76
     position:relative;
78
-    z-index:1002;
79 77
     padding-bottom: 6px;
80 78
     color:#333333;
81 79
     text-shadow:0 1px 1px rgba(255, 255, 255, 0.75);

+ 6
- 4
src/lubusy.js View File

@@ -12,10 +12,12 @@ angular.module('luticateUtils')
12 12
             },
13 13
             link: function($scope, element, attrs) {
14 14
 
15
-                var position = element.css('position');
15
+                /*var position = element.css('position');
16 16
                 if (position === 'static' || position === '' || typeof position === 'undefined'){
17 17
                     element.css('position','relative');
18
-                }
18
+                }*/
19
+
20
+                console.log(element.css('z-index'));
19 21
 
20 22
                 $scope.isLoading = false;
21 23
                 $scope.hasError = false;
@@ -85,7 +87,7 @@ angular.module('luticateUtils')
85 87
                         var backdropElement = $compile(backdrop)(templateScope);
86 88
                         element.append(backdropElement);
87 89
 
88
-                        var template = '<div class="lu-busy lu-busy-animation" ng-show="' + ngShow + '">' + indicatorTemplate + '</div>';
90
+                        var template = '<div class="lu-busy lu-busy-animation ng-hide" ng-show="' + ngShow + '">' + indicatorTemplate + '</div>';
89 91
                         var templateElement = $compile(template)(templateScope);
90 92
                         element.append(templateElement);
91 93
 
@@ -94,7 +96,7 @@ angular.module('luticateUtils')
94 96
                     });
95 97
                 }
96 98
                 addTemplate(options.templateLoader, 'loaderSplashIsActive()');
97
-                addTemplate(options.templateError, 'errorSplashIsActive()');
99
+                //addTemplate(options.templateError, 'errorSplashIsActive()');
98 100
             }
99 101
         };
100 102
     }

Loading…
Cancel
Save