Fixed: Table pagers show correct loading icon

pull/2/head
Mark McDowall 10 years ago
parent f30e7bc701
commit c3d15015fe

@ -30,7 +30,12 @@ module.exports = Paginator.extend({
return;
}
target.closest('li i').addClass('icon-sonarr-spinner fa-spin');
var icon = target.closest('li i');
var iconClasses = icon.attr('class').match(/(?:^|\s)icon\-.+?(?:$|\s)/);
var iconClass = $.trim(iconClasses[0]);
icon.removeClass(iconClass);
icon.addClass('icon-sonarr-spinner fa-spin');
var label = target.attr('data-action');
var ffLabels = this.fastForwardHandleLabels;

Loading…
Cancel
Save