Skip to content

Commit

Permalink
Avoid duplicate IDs if we are on the native clear caches utility page
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Jul 31, 2020
1 parent 685c92f commit 3389bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/cpclearcache.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$('.info', $html).infoicon();

$html.find('form').each(function (index) {
this.id = this.id || 'mmikkel-cpclearcache-form-' + index;
this.id = 'mmikkel-cpclearcache-form-' + index;
var $checkboxes = $(this).find('.checkbox-select');
new Garnish.CheckboxSelect($checkboxes);
var checkedBoxes = Craft.getLocalStorage(_this.localStorageKey);
Expand Down

0 comments on commit 3389bf3

Please sign in to comment.