pandora/static/js/loadingIcon.js

16 lines
320 B
JavaScript
Raw Normal View History

2013-07-28 09:52:13 +00:00
'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;
};