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

@ -30,17 +30,17 @@ oml.ui.itemViewButtons = function() {
},
oml_item: function() {
if (ui.item) {
that.update();
that.updateElement();
} else {
that.disableButton('book');
}
},
oml_itemview: function(data) {
that.update();
that.updateElement();
}
});
that.update = function() {
that.updateElement = function() {
var item = ui.item;
that.options({
disabled: ui.itemView != 'book',
@ -68,6 +68,6 @@ oml.ui.itemViewButtons = function() {
}
});
return that.update();
return that.updateElement();
};