diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/account/app.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/account/app.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/app.js b/server/sonar-web/src/main/js/apps/account/app.js index 2d7421e24c6..7559a916e48 100644 --- a/server/sonar-web/src/main/js/apps/account/app.js +++ b/server/sonar-web/src/main/js/apps/account/app.js @@ -1,4 +1,6 @@ -define(function () { +define([ + './change-password-view' +], function (ChangePasswordView) { var $ = jQuery; var shouldShowAvatars = window.SS && window.SS.lf && window.SS.lf.enableGravatar; @@ -22,6 +24,11 @@ define(function () { $(e.currentTarget).hide(); showExtraFavorites(); }); + + $('#account-change-password-trigger').on('click', function (e) { + e.preventDefault(); + new ChangePasswordView().render(); + }); } }; |