Skip to content

Commit

Permalink
Merge pull request #116 from iguchi1124/fix-star-button
Browse files Browse the repository at this point in the history
Fix job definition star button
  • Loading branch information
riseshia authored May 16, 2018
2 parents 877348f + 8ffec45 commit 512f378
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/kuroko2/job_definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jQuery(function ($) {

var elem = $('<a class="star" rel="nofollow" data-remote="true" data-method="post"><i class="fa fa-star-o"></i></a>')
.attr("href", definitionsPath + "/" + definitionId + "/stars")
.attr("data-definitions-path", definitionsPath)
.attr("data-definition-id", definitionId);

$(currentTarget).replaceWith(elem);
Expand All @@ -24,6 +25,7 @@ jQuery(function ($) {
var elem = $('<a class="star" rel="nofollow" data-remote="true" data-method="delete"><i class="fa fa-star"></i></a>')
.attr("href", definitionsPath + "/" + definitionId + "/stars/" + starId)
.attr("data-star-id", starId)
.attr("data-definitions-path", definitionsPath)
.attr("data-definition-id", definitionId);

$(currentTarget).replaceWith(elem);
Expand Down

0 comments on commit 512f378

Please sign in to comment.