UI.prototype.showModal(_('Uploading file…'), [
E('p', _('Please select the file to upload.')),
E('div', { 'class': 'right' }, [
+ E('div', {
+ 'class': 'btn cbi-button',
+ 'click': function() {
+ UI.prototype.hideModal();
+ rejectFn(new Error(_('Upload has been cancelled')));
+ }
+ }, [ _('Cancel') ]),
E('input', {
type: 'file',
style: 'display:none',
ev.target.previousElementSibling.click();
}
}, [ _('Browse…') ]),
- E('div', {
- 'class': 'btn cbi-button',
- 'click': function() {
- UI.prototype.hideModal();
- rejectFn(new Error(_('Upload has been cancelled')));
- }
- }, [ _('Cancel') ]),
- ' ',
E('div', {
'class': 'btn cbi-button-action important',
'disabled': true,