pandora/static/js/uploadButton.js

28 lines
511 B
JavaScript
Raw Normal View History

2016-09-15 15:20:24 +00:00
'use strict';
pandora.ui.uploadButton = function() {
var that = Ox.Button({
style: 'symbol',
title: 'upload',
type: 'image'
}).css({
display: 'none'
}).bindEvent({
click: function() {
pandora.ui.tasksDialog({
tasks: 'uploads'
}).open();
}
});
that.update = function() {
that.css({
display: pandora.uploadQueue.uploading ? 'block' : 'none'
});
};
return that;
};