1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Table pagers show correct loading icon

This commit is contained in:
Mark McDowall 2015-04-14 06:53:09 -07:00
parent f30e7bc701
commit c3d15015fe

View File

@ -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;