diff options
author | Jesús Macias <jmacias@solidgear.es> | 2016-02-01 14:25:24 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-04 16:33:08 +0100 |
commit | 7162d66373eb8e0b23c4a0b1e71d361392cea1cb (patch) | |
tree | 5f1dab09e8b3ff5692ff3f42519dfc2255ee4ca2 /apps/files_external/js/statusmanager.js | |
parent | 8fa96435b0bda96a8e7082928d0ce0b2d54383aa (diff) | |
download | nextcloud-server-7162d66373eb8e0b23c4a0b1e71d361392cea1cb.tar.gz nextcloud-server-7162d66373eb8e0b23c4a0b1e71d361392cea1cb.zip |
Fix PR from comments
Diffstat (limited to 'apps/files_external/js/statusmanager.js')
-rw-r--r-- | apps/files_external/js/statusmanager.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_external/js/statusmanager.js b/apps/files_external/js/statusmanager.js index 74362d7b00b..504561ef1bf 100644 --- a/apps/files_external/js/statusmanager.js +++ b/apps/files_external/js/statusmanager.js @@ -175,18 +175,18 @@ OCA.External.StatusManager = { if (mountData.type === "system") { if (mountData.userProvided) { // personal mount whit credentials problems - this.showCredentialsDialog(name, mountData, 'fakesavecredentials.php'); + this.showCredentialsDialog(name, mountData); } else { OC.dialogs.confirm(t('files_external', 'There was an error with message: ') + mountData.error + '. Do you want to review mount point config in admin settings page?', t('files_external', 'External mount error'), function (e) { if (e === true) { - window.location.href = OC.generateUrl('/settings/admin#files_external'); + OC.redirect(OC.generateUrl('/settings/admin#files_external')); } }); } } else { OC.dialogs.confirm(t('files_external', 'There was an error with message: ') + mountData.error + '. Do you want to review mount point config in personal settings page?', t('files_external', 'External mount error'), function (e) { if (e === true) { - window.location.href = OC.generateUrl('/settings/personal#' + t('files_external', 'goto-external-storage')); + OC.redirect(OC.generateUrl('/settings/personal#' + t('files_external', 'external-storage'))); } }); } @@ -408,7 +408,6 @@ OCA.External.StatusManager = { } }, success: function (data) { - console.log(data); OC.Notification.showTemporary(t('files_external', 'Credentials saved')); $popup.ocdialog('close'); /* Trigger status check again */ @@ -419,7 +418,6 @@ OCA.External.StatusManager = { OC.Notification.showTemporary(t('files_external', 'Credentials saving failed')); } }); - console.log('apply', username, password, endpoint); }; var ocdialogParams = { |