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

+ 6
- 4
src/lubusy.js View File

12
             },
12
             },
13
             link: function($scope, element, attrs) {
13
             link: function($scope, element, attrs) {
14
 
14
 
15
-                var position = element.css('position');
15
+                /*var position = element.css('position');
16
                 if (position === 'static' || position === '' || typeof position === 'undefined'){
16
                 if (position === 'static' || position === '' || typeof position === 'undefined'){
17
                     element.css('position','relative');
17
                     element.css('position','relative');
18
-                }
18
+                }*/
19
+
20
+                console.log(element.css('z-index'));
19
 
21
 
20
                 $scope.isLoading = false;
22
                 $scope.isLoading = false;
21
                 $scope.hasError = false;
23
                 $scope.hasError = false;
85
                         var backdropElement = $compile(backdrop)(templateScope);
87
                         var backdropElement = $compile(backdrop)(templateScope);
86
                         element.append(backdropElement);
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
                         var templateElement = $compile(template)(templateScope);
91
                         var templateElement = $compile(template)(templateScope);
90
                         element.append(templateElement);
92
                         element.append(templateElement);
91
 
93
 
94
                     });
96
                     });
95
                 }
97
                 }
96
                 addTemplate(options.templateLoader, 'loaderSplashIsActive()');
98
                 addTemplate(options.templateLoader, 'loaderSplashIsActive()');
97
-                addTemplate(options.templateError, 'errorSplashIsActive()');
99
+                //addTemplate(options.templateError, 'errorSplashIsActive()');
98
             }
100
             }
99
         };
101
         };
100
     }
102
     }

Loading…
Cancel
Save