add (still unused) private 'updateImages' method to Ox.TableList
This commit is contained in:
parent
79cd21c69d
commit
2bc41d180e
1 changed files with 20 additions and 0 deletions
|
@ -101,6 +101,7 @@ Ox.TableList = function(options, self) {
|
||||||
},
|
},
|
||||||
selected: function() {
|
selected: function() {
|
||||||
that.$body.options({selected: self.options.selected});
|
that.$body.options({selected: self.options.selected});
|
||||||
|
// updateImages();
|
||||||
updateClearButton();
|
updateClearButton();
|
||||||
},
|
},
|
||||||
sort: function() {
|
sort: function() {
|
||||||
|
@ -319,6 +320,7 @@ Ox.TableList = function(options, self) {
|
||||||
that.editCell(data.id, data.key);
|
that.editCell(data.id, data.key);
|
||||||
} else if (event == 'select') {
|
} else if (event == 'select') {
|
||||||
self.options.selected = data.ids;
|
self.options.selected = data.ids;
|
||||||
|
// updateImages();
|
||||||
updateClearButton();
|
updateClearButton();
|
||||||
}
|
}
|
||||||
that.triggerEvent(event, data);
|
that.triggerEvent(event, data);
|
||||||
|
@ -919,6 +921,24 @@ Ox.TableList = function(options, self) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateImages() {
|
||||||
|
// FIXME: not yet used
|
||||||
|
that.$body.$element.find('img').each(function(i, element) {
|
||||||
|
var $element = $(element),
|
||||||
|
data = Ox.UI.getImageData($element.attr('src'));
|
||||||
|
if (data && data.color == 'selected') {
|
||||||
|
$element.attr({src: Ox.UI.getImageURL(data.name, 'default')});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
that.$body.$element.find('.OxSelected img').each(function(i, element) {
|
||||||
|
var $element = $(element),
|
||||||
|
data = Ox.UI.getImageData($element.attr('src'));
|
||||||
|
if (data && data.color == 'default') {
|
||||||
|
$element.attr({src: Ox.UI.getImageURL(data.name, 'selected')});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function updateOrder(id) {
|
function updateOrder(id) {
|
||||||
var operator = self.options.sort[0].operator,
|
var operator = self.options.sort[0].operator,
|
||||||
pos = getColumnPositionById(id);
|
pos = getColumnPositionById(id);
|
||||||
|
|
Loading…
Reference in a new issue