updateElement

This commit is contained in:
j 2014-05-17 13:45:57 +02:00
commit 877e867d03
35 changed files with 516 additions and 314 deletions

View file

@ -20,15 +20,15 @@ oml.ui.previewButton = function() {
oml.$ui.list[data.value ? 'openPreview' : 'closePreview']();
},
oml_listselection: function() {
that.update();
that.updateElement();
}
});
that.update = function() {
that.updateElement = function() {
return that.options({disabled: ui.listSelection.length == 0});
};
return that.update();
return that.updateElement();
};