Skip to content

Commit

Permalink
remove data type
Browse files Browse the repository at this point in the history
  • Loading branch information
rachellerathbone committed Jun 7, 2022
1 parent cebe49a commit 77efac5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 1 addition & 3 deletions static/js/jira-select-card-option.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
$(".optionsCard").click(function (event) {
event.preventDefault();
const selectedVersion = $(event.target).data("type");

$(".optionsCard").removeClass("selected");
$(`.optionsCard.${selectedVersion}`).addClass("selected");
$(event.currentTarget).addClass("selected");
$(".optionBtn").prop("disabled", false).attr("aria-disabled", "false").addClass("aui-button-primary");
});
4 changes: 0 additions & 4 deletions views/partials/select-app-creation-card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
{{#if isRecommended}}
<span
class="aui-lozenge aui-lozenge-subtle aui-lozenge-new jiraSelectAppCreation__options__recommended"
data-type="{{appCreationOption}}"
>
Recommended
</span>
{{/if}}
<div class="jiraSelectAppCreation__options__card__iconContainer" data-type="{{appCreationOption}}">
<img
class="jiraSelectAppCreation__options__card__icon"
data-type="{{appCreationOption}}"
src={{appCreationIcon}}
alt={{appCreationIconAlt}}
/>
Expand All @@ -22,13 +20,11 @@
<div class="jiraSelectAppCreation__options__card__contentContainer" data-type="{{appCreationOption}}">
<h4
class="jiraSelectAppCreation__options__card__title"
data-type="{{appCreationOption}}"
>
{{appCreationTitle}}
</h4>
<p
class="jiraSelectAppCreation__options__card__info"
data-type="{{appCreationOption}}"
>
{{appCreationDescription}}
</p>
Expand Down
6 changes: 2 additions & 4 deletions views/partials/select-github-version-card.hbs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<div
class="jiraSelectGitHubVersion__options__card optionsCard {{gitHubVersion}}"
data-type="{{gitHubVersion}}"
>
<h4 class="jiraSelectGitHubVersion__options__card__title" data-type="{{gitHubVersion}}">{{cardTitle}}</h4>
<h4 class="jiraSelectGitHubVersion__options__card__title">{{cardTitle}}</h4>
<img
class="jiraSelectGitHubVersion__options__card__img {{gitHubVersion}}"
src={{cardImagePath}}
alt={{cardImageAlt}}
data-type="{{gitHubVersion}}"
/>
<p class="jiraSelectGitHubVersion__options__card__info" data-type="{{gitHubVersion}}">{{cardContent}}</p>
<p class="jiraSelectGitHubVersion__options__card__info">{{cardContent}}</p>
</div>

0 comments on commit 77efac5

Please sign in to comment.