15 lines
320 B
JavaScript
15 lines
320 B
JavaScript
'use strict';
|
|
|
|
pandora.ui.loadingIcon = function() {
|
|
|
|
var that = Ox.LoadingIcon({size: 'medium'});
|
|
|
|
that.update = function(requests) {
|
|
that[requests ? 'start' : 'stop']().options({
|
|
tooltip: (requests || 'No') + ' request' + (requests == 1 ? '' : 's')
|
|
});
|
|
};
|
|
|
|
return that;
|
|
|
|
};
|