Skip to content

Commit 530be48

Browse files
author
0xAX
committed
Update dimmer.js
1 parent fbaeecf commit 530be48

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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)