fix a bug in Ox.FileButton
This commit is contained in:
parent
826eb5548d
commit
8c67bf9462
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
Ox.load('UI', function() {
|
||||
|
||||
var files = [],
|
||||
var files,
|
||||
|
||||
$menu = Ox.MainMenu({
|
||||
menus: [
|
||||
|
@ -140,6 +140,7 @@ Ox.load('UI', function() {
|
|||
}
|
||||
})
|
||||
),
|
||||
keys: {enter: 'upload', escape: 'cancel'},
|
||||
title: 'Files',
|
||||
width: 288 + Ox.UI.SCROLLBAR_SIZE,
|
||||
height: 129
|
||||
|
|
|
@ -38,6 +38,7 @@ Ox.FileButton = function(options, self) {
|
|||
function selectFiles(e) {
|
||||
var filelist = e.target.files,
|
||||
files = [];
|
||||
self.files = [];
|
||||
Ox.loop(filelist.length, function(i) {
|
||||
files.push(filelist.item(i));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue