mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-06-26 22:49:32 +02:00
18 lines
292 B
JavaScript
18 lines
292 B
JavaScript
import $ from 'jquery';
|
|
|
|
const SpinnerUI = (($) => {
|
|
class SpinnerUI {
|
|
static show(callback) {
|
|
$('#PageLoading').show(0, callback);
|
|
}
|
|
|
|
static hide(callback) {
|
|
$('#PageLoading').hide('slow', callback);
|
|
}
|
|
}
|
|
|
|
return SpinnerUI;
|
|
})($);
|
|
|
|
export default SpinnerUI;
|