added file input support
This commit is contained in:
parent
39592c856c
commit
bf1cadb808
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/////////////////////// BlueCore 1.8.2 \\\\\\\\\\\\\\\\\\\\\\\\\\
|
||||
/////////////////////// BlueCore 1.8.3 \\\\\\\\\\\\\\\\\\\\\\\\\\
|
||||
|
||||
function getData(url,dothis,tothis,type,body) {
|
||||
var DataRequest = new XMLHttpRequest();
|
||||
@ -112,7 +112,11 @@ function inputDialog (dialogRoot,container,args,callback) {
|
||||
var inputArea = elementPlace("#"+container.id,null,"formInput","input");
|
||||
if ("string" == typeof args.inputType) { inputArea.type = args.inputType; }
|
||||
buttonAdd("#"+container.id,null,"Submit",function () {
|
||||
callback(inputArea.value);
|
||||
if ("file" == inputArea.type ) {
|
||||
callback(inputArea.files);
|
||||
} else {
|
||||
callback(inputArea.value);
|
||||
}
|
||||
dialogRoot.parentNode.removeChild(dialogRoot);
|
||||
},"dialog_submit");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user