show/hide debug menu preferences

This commit is contained in:
Jan Gerber 2015-05-14 13:40:29 +02:00
commit 0a96598e35
3 changed files with 11 additions and 0 deletions

View file

@ -993,3 +993,9 @@ oml.validatePublicKey = function(value) {
return /^[A-Za-z0-9+\/]{43}$/.test(value);
};
oml.updateDebugMenu = function() {
var menu = $('.OxTitle').filter(function(i, e) {
return e.innerHTML == 'Debug'
});
oml.user.ui.showDebugMenu ? menu.show() : menu.hide();
};