aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/account
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-17 15:14:08 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-18 11:02:51 +0100
commit3f38540619ece91a5f77cdd202ba339d3eb41462 (patch)
tree17386de2fc2b0972bb5f42453af3fcf4ffcb416f /server/sonar-web/src/main/js/apps/account
parenta76c4cc7cee9d6974324d93d936b904eab4960dc (diff)
downloadsonarqube-3f38540619ece91a5f77cdd202ba339d3eb41462.tar.gz
sonarqube-3f38540619ece91a5f77cdd202ba339d3eb41462.zip
install webpack
Diffstat (limited to 'server/sonar-web/src/main/js/apps/account')
-rw-r--r--server/sonar-web/src/main/js/apps/account/app.js5
-rw-r--r--server/sonar-web/src/main/js/apps/account/change-password-view.js4
2 files changed, 4 insertions, 5 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 5ec13d8a18e..e512ec18f5c 100644
--- a/server/sonar-web/src/main/js/apps/account/app.js
+++ b/server/sonar-web/src/main/js/apps/account/app.js
@@ -1,7 +1,6 @@
import $ from 'jquery';
-import Handlebars from 'hbsfy/runtime';
import ChangePasswordView from './change-password-view';
-import '../../helpers/handlebars-helpers';
+import avatarHelper from '../../helpers/handlebars/avatarHelper';
var shouldShowAvatars = window.SS && window.SS.lf && window.SS.lf.enableGravatar;
var favorites = $('.js-account-favorites tr');
@@ -15,7 +14,7 @@ class App {
$('html').addClass('dashboard-page');
if (shouldShowAvatars) {
- var avatarHtml = Handlebars.helpers.avatarHelper(window.SS.userEmail, 100).string;
+ var avatarHtml = avatarHelper(window.SS.userEmail, 100).string;
$('.js-avatar').html(avatarHtml);
}
diff --git a/server/sonar-web/src/main/js/apps/account/change-password-view.js b/server/sonar-web/src/main/js/apps/account/change-password-view.js
index 4df1c081161..400004d1e67 100644
--- a/server/sonar-web/src/main/js/apps/account/change-password-view.js
+++ b/server/sonar-web/src/main/js/apps/account/change-password-view.js
@@ -5,8 +5,8 @@ import Template from './templates/account-change-password.hbs';
export default ModalForm.extend({
template: Template,
- onFormSubmit: function (e) {
- this._super(e);
+ onFormSubmit: function () {
+ ModalForm.prototype.onFormSubmit.apply(this, arguments);
if (this.checkPasswords()) {
this.sendRequest();
} else {