|
|
@ -39790,7 +39790,7 @@ BI.Searcher = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.masker && !BI.Maskers.has(this.getName())) { |
|
|
|
if (o.masker && !BI.Maskers.has(this.getName())) { |
|
|
|
BI.Maskers.create(this.getName(), o.adapter, BI.extend({ |
|
|
|
BI.Maskers.create(this.getName(), o.adapter, BI.extend({ |
|
|
|
container: this, |
|
|
|
container: o.container || this, |
|
|
|
render: this.popupView |
|
|
|
render: this.popupView |
|
|
|
}, o.masker), this); |
|
|
|
}, o.masker), this); |
|
|
|
} |
|
|
|
} |
|
|
@ -39977,7 +39977,8 @@ BI.Searcher.EVENT_PAUSE = "EVENT_PAUSE"; |
|
|
|
BI.Searcher.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.Searcher.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT"; |
|
|
|
BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.searcher", BI.Searcher);/** |
|
|
|
BI.shortcut("bi.searcher", BI.Searcher); |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* |
|
|
|
* 切换显示或隐藏面板 |
|
|
|
* 切换显示或隐藏面板 |
|
|
|
* |
|
|
|
* |
|
|
@ -44559,15 +44560,15 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
for (var |
|
|
|
for (var |
|
|
|
xhr = new XMLHttpRequest, |
|
|
|
xhr = new XMLHttpRequest, |
|
|
|
upload = xhr.upload || { |
|
|
|
upload = xhr.upload || { |
|
|
|
addEventListener: function (event, callback) { |
|
|
|
addEventListener: function (event, callback) { |
|
|
|
this["on" + event] = callback; |
|
|
|
this["on" + event] = callback; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
i = 0; |
|
|
|
i = 0; |
|
|
|
i < length; |
|
|
|
i < length; |
|
|
|
i++ |
|
|
|
i++ |
|
|
|
) { |
|
|
|
) { |
|
|
|
upload.addEventListener( |
|
|
|
upload.addEventListener( |
|
|
|
split[i].substring(2), |
|
|
|
split[i].substring(2), |
|
|
@ -44622,9 +44623,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
switch (xhr.readyState) { |
|
|
|
switch (xhr.readyState) { |
|
|
|
case 2: |
|
|
|
case 2: |
|
|
|
case 3: |
|
|
|
case 3: |
|
|
|
if (rpe.total <= rpe.loaded) { |
|
|
|
if (rpe.total <= rpe.loaded) {rpe.loaded = rpe.total;} |
|
|
|
rpe.loaded = rpe.total; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
upload.onprogress(rpe); |
|
|
|
upload.onprogress(rpe); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
case 4: |
|
|
@ -44690,12 +44689,8 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"), |
|
|
|
var url = handler.url.concat(-1 === handler.url.indexOf("?") ? "?" : "&", "AjaxUploadFrame=true"), |
|
|
|
rpe = { |
|
|
|
rpe = { |
|
|
|
loaded: 1, total: 100, simulation: true, interval: setInterval(function () { |
|
|
|
loaded: 1, total: 100, simulation: true, interval: setInterval(function () { |
|
|
|
if (rpe.loaded < rpe.total) { |
|
|
|
if (rpe.loaded < rpe.total) {++rpe.loaded;} |
|
|
|
++rpe.loaded; |
|
|
|
if (isFunction(handler.onprogress)) {handler.onprogress(rpe, {});} |
|
|
|
} |
|
|
|
|
|
|
|
if (isFunction(handler.onprogress)) { |
|
|
|
|
|
|
|
handler.onprogress(rpe, {}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, 100) |
|
|
|
}, 100) |
|
|
|
}, |
|
|
|
}, |
|
|
|
onload = function () { |
|
|
|
onload = function () { |
|
|
@ -44719,13 +44714,9 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
handler.attach_array.push(attachO); |
|
|
|
handler.attach_array.push(attachO); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
if (isFunction(handler.onerror)) { |
|
|
|
if (isFunction(handler.onerror)) {handler.onerror(rpe, event || _global.event);} |
|
|
|
handler.onerror(rpe, event || _global.event); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (isFunction(handler.onload)) { |
|
|
|
|
|
|
|
handler.onload(rpe, {responseText: responseText}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isFunction(handler.onload)) {handler.onload(rpe, {responseText: responseText});} |
|
|
|
}, |
|
|
|
}, |
|
|
|
target = ["AjaxUpload", (new Date).getTime(), String(Math.random()).substring(2)].join("_"); |
|
|
|
target = ["AjaxUpload", (new Date).getTime(), String(Math.random()).substring(2)].join("_"); |
|
|
|
try { // IE < 8 does not accept enctype attribute ...
|
|
|
|
try { // IE < 8 does not accept enctype attribute ...
|
|
|
|