Save two lines
This commit is contained in:
parent
1f8f0e61d8
commit
08225a60c8
|
@ -142,9 +142,7 @@ var OCdialogs = {
|
||||||
.fail(function(status, error) {
|
.fail(function(status, error) {
|
||||||
// If the method is called while navigating away
|
// If the method is called while navigating away
|
||||||
// from the page, it is probably not needed ;)
|
// from the page, it is probably not needed ;)
|
||||||
if(status === 0) {
|
if(status !== 0) {
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
alert(t('core', 'Error loading file picker template: {error}', {error: error}));
|
alert(t('core', 'Error loading file picker template: {error}', {error: error}));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue