pandora/static/js/loadingIcon.js
2013-07-28 09:52:13 +00:00

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;
};