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

@ -6,21 +6,21 @@ oml.ui.info = function() {
that = Ox.Element()
.addClass('OxTextPage')
.css({
padding: '0 16px',
.css({
padding: '0 16px',
textAlign: 'center',
overflowY: 'auto'
})
.bindEvent({
overflowY: 'auto'
})
.bindEvent({
oml_item: function() {
that.update();
that.updateElement();
},
oml_listselection: function() {
that.update();
}
});
oml_listselection: function() {
that.updateElement();
}
});
that.update = function() {
that.updateElement = function() {
var id = ui.item || ui.listSelection[0];
if (id) {
oml.api.get({
@ -64,6 +64,6 @@ oml.ui.info = function() {
return that;
};
return that.update();
return that.updateElement();
};