aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs4
-rw-r--r--server/sonar-web/src/main/js/apps/users/tokens-view.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs b/server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs
index 0d96f081f01..f994ee4d588 100644
--- a/server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs
+++ b/server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs
@@ -25,7 +25,7 @@
</td>
<td class="thin nowrap text-right">
<div class="big-spacer-left">
- <form id="revoke-token-form" data-token="{{name}}">
+ <form class="js-revoke-token-form" data-token="{{name}}">
{{#if deleting}}
<button class="button-red">Sure?</button>
{{else}}
@@ -54,7 +54,7 @@
<div class="alert alert-danger">{{msg}}</div>
{{/each}}
- <form id="generate-token-form">
+ <form class="js-generate-token-form">
<input type="text" required maxlength="30" placeholder="Enter Token Name">
<button>Generate</button>
</form>
diff --git a/server/sonar-web/src/main/js/apps/users/tokens-view.js b/server/sonar-web/src/main/js/apps/users/tokens-view.js
index e986e84e7ac..c9c34eb2556 100644
--- a/server/sonar-web/src/main/js/apps/users/tokens-view.js
+++ b/server/sonar-web/src/main/js/apps/users/tokens-view.js
@@ -12,8 +12,8 @@ export default Modal.extend({
events () {
return _.extend(Modal.prototype.events.apply(this, arguments), {
- 'submit #generate-token-form': 'onGenerateTokenFormSubmit',
- 'submit #revoke-token-form': 'onRevokeTokenFormSubmit'
+ 'submit .js-generate-token-form': 'onGenerateTokenFormSubmit',
+ 'submit .js-revoke-token-form': 'onRevokeTokenFormSubmit'
});
},