Verified Commit 63656ecc authored by Alexis Ragot's avatar Alexis Ragot
Browse files

Fix error with several loading icon on ajax

parent 0a0ff2fc
......@@ -170,7 +170,7 @@
var activeButtons = $('.btn').not('[disabled]');
if (button) {
icon = button.find('.fa').attr('class');
icon = button.find('.fa:first').attr('class');
}
if (!timeout) {
......@@ -184,7 +184,7 @@
activeButtons.prop('disabled', true);
if (icon) {
button.find('.fa').removeClass(icon).addClass('fa fa-spinner fa-spin');
button.find('.fa:first').removeClass(icon).addClass('fa fa-spinner fa-spin');
}
}
......@@ -221,7 +221,7 @@
function ajaxEnd(activeButtons, button, icon) {
activeButtons.prop('disabled', false);
if (icon) {
button.find('.fa').removeClass('fa-spinner fa-spin').addClass(icon);
button.find('.fa:first').removeClass('fa-spinner fa-spin').addClass(icon);
}
}
......
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