forked from 0x2620/pandora
28 lines
511 B
JavaScript
28 lines
511 B
JavaScript
|
'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;
|
||
|
|
||
|
};
|