|
|
@ -22,6 +22,8 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
for (var base in settings.spinner) { |
|
|
|
for (var base in settings.spinner) { |
|
|
|
var id = '#' + base; |
|
|
|
var id = '#' + base; |
|
|
|
|
|
|
|
// Don't add spinner to the hidden next/ingest button.
|
|
|
|
|
|
|
|
if (id != '#edit-hidden-next') { |
|
|
|
$(id, context).once('spinner', function () { |
|
|
|
$(id, context).once('spinner', function () { |
|
|
|
var spinner = new Spinner(settings.spinner[base].opts); |
|
|
|
var spinner = new Spinner(settings.spinner[base].opts); |
|
|
|
$(id).parents('form').one('submit', function (event) { |
|
|
|
$(id).parents('form').one('submit', function (event) { |
|
|
@ -54,5 +56,6 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
})(jQuery); |
|
|
|
})(jQuery); |
|
|
|