diff --git a/frontend_tests/casper_tests/06-settings.js b/frontend_tests/casper_tests/06-settings.js index bc0aa5fc8e..622b226e7a 100644 --- a/frontend_tests/casper_tests/06-settings.js +++ b/frontend_tests/casper_tests/06-settings.js @@ -5,7 +5,7 @@ var OUTGOING_WEBHOOK_BOT_TYPE = '3'; common.start_and_log_in(); -var form_sel = 'form[action^="/json/settings/change"]'; +var form_sel = 'form[action^="/json/settings"]'; var regex_zuliprc = /^data:application\/octet-stream;charset=utf-8,\[api\]\nemail=.+\nkey=.+\nsite=.+\n$/; var regex_flaskbotrc = /^data:application\/octet-stream;charset=utf-8,\[.\]\nemail=.+\nkey=.+\nsite=.+\n$/; diff --git a/static/js/settings_account.js b/static/js/settings_account.js index 478fc13c38..189416ca42 100644 --- a/static/js/settings_account.js +++ b/static/js/settings_account.js @@ -155,7 +155,7 @@ exports.set_up = function () { data.email = $('.email_change_container').find("input[name='email']").val(); channel.patch({ - url: '/json/settings/change', + url: '/json/settings', data: data, success: function (data) { if ('account_email' in data) { diff --git a/static/templates/settings/account-settings.handlebars b/static/templates/settings/account-settings.handlebars index 323c6a7713..8a624008bb 100644 --- a/static/templates/settings/account-settings.handlebars +++ b/static/templates/settings/account-settings.handlebars @@ -37,7 +37,7 @@ -