summaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-09-11 21:15:32 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-09-11 21:15:32 +0200
commit08225a60c8e7535ae94726189a090679886ea47d (patch)
treec676296845e3a2c014ee45f30d705df1c22ec557 /core/js/oc-dialogs.js
parent1f8f0e61d89036e9c51befbd88404cbe9af6e664 (diff)
downloadnextcloud-server-08225a60c8e7535ae94726189a090679886ea47d.tar.gz
nextcloud-server-08225a60c8e7535ae94726189a090679886ea47d.zip
Save two lines
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r--core/js/oc-dialogs.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 26173ffeb69..db8cb5d8cf9 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -142,9 +142,7 @@ var OCdialogs = {
.fail(function(status, error) {
// If the method is called while navigating away
// from the page, it is probably not needed ;)
- if(status === 0) {
- return;
- } else {
+ if(status !== 0) {
alert(t('core', 'Error loading file picker template: {error}', {error: error}));
}
});