Move spinner indicator functionality to linkClicked method

refs #7968
This commit is contained in:
Alexander Fuhr 2015-02-25 12:10:08 +01:00
parent 3b2e3dcd36
commit 4505718ecc
1 changed files with 5 additions and 7 deletions

View File

@ -115,8 +115,6 @@
$(document).on('click', 'a', { self: this }, this.linkClicked);
$(document).on('click', 'tr[href]', { self: this }, this.linkClicked);
$(document).on('click', '.refresh', { self: this }, this.refreshContent);
// Select a table row
$(document).on('click', 'table.multiselect tr[href]', { self: this }, this.rowSelected);
@ -440,6 +438,11 @@
return;
}
// activate spinner indicator
if ($a.hasClass('spinner')) {
$a.addClass('active');
}
// If link has hash tag...
if (href.match(/#/)) {
if (href === '#') {
@ -483,11 +486,6 @@
return false;
},
refreshContent: function () {
var $icon = $(this).children('i');
$icon.addClass($icon.data('load-class'));
},
/**
* Detect the link/form target for a given element (link, form, whatever)
*/