Skip to content

Commit 2211299

Browse files
author
0xAX
committed
Merge branch 'master' of github.com:angularify/angular-semantic-ui
2 parents dcbd379 + 530be48 commit 2211299

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/dimmer/dimmer.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ angular.module('angularify.semantic.dimmer', [])
1818
"</div>",
1919
link : function(scope, element, attrs, ngModel) {
2020

21-
if (scope.show == false && scope.show == undefined){
22-
scope.show = false;
23-
scope.dimmer_class = 'ui page dimmer';
24-
}
25-
else if (scope.show == true) {
21+
if (scope.show == true) {
2622
scope.dimmer_class = 'ui page active dimmer';
2723
}
24+
else {
25+
scope.show = false;
26+
scope.dimmer_class = 'ui page disable dimmer';
27+
}
2828

2929
//
3030
// Click on dimmer handler
@@ -45,4 +45,4 @@ angular.module('angularify.semantic.dimmer', [])
4545
});
4646
}
4747
};
48-
});
48+
});

0 commit comments

Comments
 (0)