mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
fix(dom) add param to showError
This commit is contained in:
parent
4340868746
commit
413fe8de35
1 changed files with 5 additions and 6 deletions
|
|
@ -77,10 +77,10 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
this.showError = function(jqXHR, textStatus, errorThrown){
|
||||
var lLoadingImage = lImages.loading(),
|
||||
lErrorImage = lImages.error(),
|
||||
lResponce = jqXHR.responseText,
|
||||
lResponse = jqXHR.responseText,
|
||||
lStatusText = jqXHR.statusText,
|
||||
lStatus = jqXHR.status,
|
||||
lText = (lStatus === 404 ? lResponce : lStatusText);
|
||||
lText = (lStatus === 404 ? lResponse : lStatusText);
|
||||
|
||||
/* если файла не существует*/
|
||||
if ( Util.isContainStr(lText, 'Error: ENOENT, ') )
|
||||
|
|
@ -180,10 +180,9 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
Util.log(pData);
|
||||
Util.exec(p.callback, pData);
|
||||
},
|
||||
error : function(pData) {
|
||||
Images.showError();
|
||||
Util.log(pData);
|
||||
Util.exec(p.error, pData);
|
||||
error : function(pError) {
|
||||
Images.showError(pError);
|
||||
Util.exec(p.error, pError);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue