42 lines
No EOL
981 B
JavaScript
42 lines
No EOL
981 B
JavaScript
Ox.load('UI', function() {
|
|
|
|
//Ox.Theme('modern');
|
|
|
|
Ox.FileInput({
|
|
maxFiles: 1,
|
|
width: 256
|
|
})
|
|
.css({
|
|
position: 'absolute',
|
|
left: '16px',
|
|
top: '16px'
|
|
})
|
|
.appendTo(Ox.$body);
|
|
|
|
Ox.FileButton({
|
|
title: 'Select Files...',
|
|
width: 256
|
|
})
|
|
.bindEvent({
|
|
click: function(data) {
|
|
this.options({disabled: true});
|
|
Ox.FileInput({
|
|
value: data.files,
|
|
width: 256
|
|
})
|
|
.css({
|
|
position: 'absolute',
|
|
left: '16px',
|
|
top: '80px'
|
|
})
|
|
.appendTo(Ox.$body);
|
|
}
|
|
})
|
|
.css({
|
|
position: 'absolute',
|
|
left: '16px',
|
|
top: '48px'
|
|
})
|
|
.appendTo(Ox.$body);
|
|
|
|
}); |