Replaced loadResource() with the more streamlined getResource(), for all your resource-getting needs (well, except for binary files, which should be coming soon)
This commit is contained in:
parent
466c087ece
commit
f032f95611
26 changed files with 3881 additions and 3777 deletions
|
|
@ -701,7 +701,9 @@ C1PDiskController.prototype.setBinding = function(sHTMLType, sBinding, control,
|
|||
sFileURL = "http://" + window.location.host + "/api/v1/dump?disk=" + sFilePath;
|
||||
}
|
||||
controller.println("loading " + str.getBaseName(sFilePath) + "...");
|
||||
web.loadResource(sFileURL, true, null, controller, controller.loadDisk);
|
||||
web.getResource(sFileURL, null, true, function(sURL, sResponse, nErrorCode) {
|
||||
controller.loadDisk(sURL, sResponse, nErrorCode);
|
||||
});
|
||||
}
|
||||
};
|
||||
}(this);
|
||||
|
|
|
|||
Loading…
Reference in a new issue