add loadingIcon.js
This commit is contained in:
parent
716a5a57a9
commit
aeed539fe7
3 changed files with 18 additions and 11 deletions
15
static/js/loadingIcon.js
Normal file
15
static/js/loadingIcon.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'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;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue