Skip to content

Commit

Permalink
Merge pull request #24 from cat-in-136/fix-like-btn-wrong-position
Browse files Browse the repository at this point in the history
fix bug where Like buttons are placed at wrong position on notes in issues #23
  • Loading branch information
cat-in-136 authored Mar 16, 2019
2 parents a915acd + 316c01d commit 2c2eb57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ cache:
- redmine/vendor/bundle
matrix:
include:
- rvm: 2.6.1
env: REDMINE_VERSION=4.0.2
- rvm: 2.5.3
env: REDMINE_VERSION=4.0.0
# - rvm: 2.6.0-rc2
# env: REDMINE_VERSION=3.4.7
env: REDMINE_VERSION=4.0.2
- rvm: 2.5.3
env: REDMINE_VERSION=3.4.7
env: REDMINE_VERSION=3.4.9
- rvm: 2.4.5
env: REDMINE_VERSION=3.4.7
env: REDMINE_VERSION=3.4.9
- rvm: 2.3.8
env: REDMINE_VERSION=3.4.7
env: REDMINE_VERSION=3.4.9
before_install: bash -x bin/travisci_before_install.sh
before_script: bash -x bin/travisci_before_script.sh
script: bash -x bin/travisci_exec_test.sh
Expand Down
4 changes: 3 additions & 1 deletion assets/javascripts/transplant_heart_link_with_counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ $(function() {
let heartable_subject = getHeartableSubject(link);
let num_insert = 0;

console.debug({heartable_subject, link});

if (num_insert === 0) {
let note_subject = heartable_subject.replace(/^[-a-z0-9]+-/, "note-");
let note_subject = heartable_subject.replace(/^[-a-z0-9]+-/, "change-");
num_insert += $(link).prependTo($("#" + note_subject + " .journal-actions")).length;
}
if (num_insert === 0) {
Expand Down

0 comments on commit 2c2eb57

Please sign in to comment.