diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-17 15:14:08 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-18 11:02:51 +0100 |
commit | 3f38540619ece91a5f77cdd202ba339d3eb41462 (patch) | |
tree | 17386de2fc2b0972bb5f42453af3fcf4ffcb416f /server/sonar-web/src/main/js/apps/permission-templates | |
parent | a76c4cc7cee9d6974324d93d936b904eab4960dc (diff) | |
download | sonarqube-3f38540619ece91a5f77cdd202ba339d3eb41462.tar.gz sonarqube-3f38540619ece91a5f77cdd202ba339d3eb41462.zip |
install webpack
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permission-templates')
4 files changed, 6 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/app.js b/server/sonar-web/src/main/js/apps/permission-templates/app.js index e8c443eb4e9..99868c14ea1 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/app.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/app.js @@ -1,7 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Main from './main'; -import '../../helpers/handlebars-helpers'; window.sonarqube.appStarted.then(options => { var el = document.querySelector(options.el); diff --git a/server/sonar-web/src/main/js/apps/permission-templates/form-view.js b/server/sonar-web/src/main/js/apps/permission-templates/form-view.js index f2cbf834af9..97ed379d4a7 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/form-view.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/form-view.js @@ -5,7 +5,7 @@ export default ModalForm.extend({ template: Template, onRender: function () { - this._super(); + ModalForm.prototype.onRender.apply(this, arguments); this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'bottom' }); this.$('#create-custom-measure-metric').select2({ width: '250px', @@ -14,7 +14,7 @@ export default ModalForm.extend({ }, onDestroy: function () { - this._super(); + ModalForm.prototype.onDestroy.apply(this, arguments); this.$('[data-toggle="tooltip"]').tooltip('destroy'); }, diff --git a/server/sonar-web/src/main/js/apps/permission-templates/groups-view.js b/server/sonar-web/src/main/js/apps/permission-templates/groups-view.js index fc43c68c24c..94669cc9974 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/groups-view.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/groups-view.js @@ -12,7 +12,7 @@ export default Modal.extend({ template: Template, onRender: function () { - this._super(); + Modal.prototype.onRender.apply(this, arguments); new window.SelectList({ el: this.$('#permission-templates-groups'), width: '100%', @@ -42,7 +42,7 @@ export default Modal.extend({ if (this.options.refresh) { this.options.refresh(); } - this._super(); + Modal.prototype.onDestroy.apply(this, arguments); }, serializeData: function () { diff --git a/server/sonar-web/src/main/js/apps/permission-templates/users-view.js b/server/sonar-web/src/main/js/apps/permission-templates/users-view.js index 83b474ddb70..0e4791c99cd 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/users-view.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/users-view.js @@ -7,7 +7,7 @@ export default Modal.extend({ template: Template, onRender: function () { - this._super(); + Modal.prototype.onRender.apply(this, arguments); var searchUrl = baseUrl + '/api/permissions/template_users?ps=100&permission=' + this.options.permission.key + '&templateId=' + this.options.permissionTemplate.id; new window.SelectList({ @@ -39,7 +39,7 @@ export default Modal.extend({ if (this.options.refresh) { this.options.refresh(); } - this._super(); + Modal.prototype.onDestroy.apply(this, arguments); }, serializeData: function () { |