forked from 0x2620/pandora
first version of new upload interface
This commit is contained in:
parent
8feed54bf9
commit
6c013ebc92
20 changed files with 966 additions and 102 deletions
27
static/js/uploadButton.js
Normal file
27
static/js/uploadButton.js
Normal 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;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue