first version of new upload interface

This commit is contained in:
j 2016-09-15 15:20:24 +00:00
commit 6c013ebc92
20 changed files with 966 additions and 102 deletions

27
static/js/uploadButton.js Normal file
View file

@ -0,0 +1,27 @@
'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;
};