mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 14:05:07 +03:00
fix upload img for IE, но не работает :)
This commit is contained in:
parent
c5db7e017b
commit
db55dd23ad
|
@ -84,15 +84,14 @@ function hideImgUploadForm() {
|
|||
var winFormImgUpload;
|
||||
|
||||
|
||||
function ajaxUploadImg(value,sToLoad) {
|
||||
sToLoad=$(sToLoad);
|
||||
function ajaxUploadImg(value,sToLoad) {
|
||||
var req = new JsHttpRequest();
|
||||
req.onreadystatechange = function() {
|
||||
if (req.readyState == 4) {
|
||||
if (req.responseJS.bStateError) {
|
||||
msgErrorBox.alert(req.responseJS.sMsgTitle,req.responseJS.sMsg);
|
||||
} else {
|
||||
sToLoad.insertAtCursor(req.responseJS.sText);
|
||||
lsPanel.putText(sToLoad,req.responseJS.sText);
|
||||
hideImgUploadForm();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue