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