From 08225a60c8e7535ae94726189a090679886ea47d Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Wed, 11 Sep 2013 21:15:32 +0200 Subject: [PATCH] Save two lines --- core/js/oc-dialogs.js | 4 +--- 1 file changed, 1 insertion(+), 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})); } }); -- 2.39.5