Commit 790e51d1 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1767882: Remove old udpdatecallback call in js

was making tablerenderer call updatecallback(
error

But the element that was updating was removed in 2009
 commit 2319c045

behatnotneeded

Change-Id: Icbc4718e01b9348f4e244e8d83620d527b9fbff2
parent 2d54d56b
......@@ -132,18 +132,6 @@ var table = new TableRenderer(
);
table.updateOnLoad();
table.emptycontent = {$strnoimagesfound};
table.updatecallback = function(response) {
var defaultIcon = filter(function (i) { return i.isdefault == 't'; }, response.data);
if (defaultIcon.length) {
defaultIcon = defaultIcon[0].id;
jQuery('#column-right img').each(function() {
if (jQuery(this).prop('src').match(/thumb\.php\?type=profileiconbyid/)) {
jQuery(this).prop('src', jQuery(this).prop('src').replace(/id=[0-9]+/, 'id=' + String(defaultIcon)));
}
});
}
};
table.postupdatecallback = function(response) {
profileiconschecker.init();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment