Improved indicator

This commit is contained in:
Borys Levytskyi
2015-04-04 19:49:15 +03:00
parent ffe5e6d33d
commit 07024e4207
3 changed files with 10 additions and 3 deletions

View File

@@ -86,7 +86,13 @@ app.compose(function() {
},
update: function (cfg) {
var emIndicator = this.viewElement.querySelector('#emphasizeBytes');
emIndicator.style.display = cfg.emphasizeBytes ? '' : 'none';
var reg = /\son/g;
if(cfg.emphasizeBytes) {
emIndicator.classList.add("on");
} else {
emIndicator.classList.remove("on");
}
}
});