oxjs/demos/fileinput/js/fileinput.js

42 lines
981 B
JavaScript
Raw Normal View History

2012-03-23 16:55:55 +00:00
Ox.load('UI', function() {
//Ox.Theme('modern');
Ox.FileInput({
2012-03-23 17:20:36 +00:00
maxFiles: 1,
2012-03-23 16:55:55 +00:00
width: 256
})
.css({
position: 'absolute',
left: '16px',
top: '16px'
})
2012-03-23 17:57:12 +00:00
.appendTo(Ox.$body);
2012-03-23 16:55:55 +00:00
2012-03-23 17:57:12 +00:00
Ox.FileButton({
title: 'Select Files...',
2012-03-23 17:20:36 +00:00
width: 256
})
2012-03-23 17:57:12 +00:00
.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);
}
})
2012-03-23 17:20:36 +00:00
.css({
position: 'absolute',
left: '16px',
top: '48px'
})
2012-03-23 17:57:12 +00:00
.appendTo(Ox.$body);
2012-03-23 17:20:36 +00:00
2012-03-23 16:55:55 +00:00
});