Skip to content

Commit b38531b

Browse files
Fix double click issue (#772)
1 parent f0667bf commit b38531b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apigee_edge.libraries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ apigee_edge.status_property:
5151
css/apigee_edge.status_property.css: {}
5252

5353
apigee_edge.secret:
54-
version: 1.0
54+
version: 1.1
5555
css:
5656
theme:
5757
css/apigee_edge.secret.css: {}

js/apigee_edge.secret.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
$this.addClass(hClass);
4040

4141
// Toggle secret.
42-
$(this).find('.secret__toggle').on('click', function (event) {
42+
$(this).find('.secret__toggle').once().on('click', function (event) {
4343
let index = $(this).closest(appElWrapper).find('.secret__toggle').index(this);
4444
let wrapperIndex = $wrapper.data('app-container-index');
4545
event.preventDefault();
@@ -57,7 +57,7 @@
5757

5858
// Copy to clipboard.
5959
let $copy = $(this).find('.secret__copy');
60-
$copy.find('button').on('click', function (event) {
60+
$copy.find('button').once().on('click', function (event) {
6161
let index = $(this).closest(appElWrapper).find('.secret__copy button').index(this);
6262
let wrapperIndex = $wrapper.closest('fieldset').parent().find('fieldset').index($(this).closest('fieldset'));
6363
callEndpoint($wrapper.data('app-keys-url'), function(data) {

0 commit comments

Comments
 (0)