From: Thomas Tanghus Date: Wed, 11 Sep 2013 19:15:32 +0000 (+0200) Subject: Save two lines X-Git-Tag: v6.0.0alpha2~180^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=08225a60c8e7535ae94726189a090679886ea47d;p=nextcloud-server.git Save two lines --- 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})); } });