38 lines
1,008 B
JavaScript
38 lines
1,008 B
JavaScript
var AmiUploadsSidebar = function() {
|
|
var sbName = 'uploadList';
|
|
var body = $element(
|
|
'div', {},
|
|
$element(
|
|
'div', { className: 'eepromForm' },
|
|
$element('input', {
|
|
id: 'uploadSelector',
|
|
type: 'file',
|
|
class: 'hidden',
|
|
multiple: true,
|
|
}),
|
|
$element('input', {
|
|
id: 'uploadButton',
|
|
type: 'button',
|
|
value: 'Select file',
|
|
}),
|
|
),
|
|
$element('table', {
|
|
id: 'uploadHistory',
|
|
class: 'eepromHistory',
|
|
}),
|
|
);
|
|
|
|
var setTitle;
|
|
|
|
return {
|
|
getName: function() { return sbName; },
|
|
isWide: function() { return false; },
|
|
getBody: function() { return body; },
|
|
apply: function(obj) {
|
|
setTitle = obj.setTitle;
|
|
},
|
|
reloadStrings: function() {
|
|
setTitle(AmiStrings.getMenuString('uploads'));
|
|
},
|
|
};
|
|
};
|