Skip to content

Commit

Permalink
[#1879] Use correct marker selector for editing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gabemart committed Oct 29, 2015
1 parent 287aa61 commit 0dd9f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion akvo/rsr/static/scripts-src/project-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ if (firstAccordionChild !== null) {
if (exceedCheckbox.checked) {
newValue = parseInt(exceedValueNode.value);
} else {
newValue = parseInt(updateContainer.querySelector('.update-dialog-timeline-marker:first-child').getAttribute('data-value'));
newValue = parseInt(updateContainer.querySelector('.update-dialog-timeline-marker:nth-last-child(2)').getAttribute('data-value'));
}

if (updateId !== 'add') {
Expand Down
2 changes: 1 addition & 1 deletion akvo/rsr/static/scripts-src/project-main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ if (firstAccordionChild !== null) {
if (exceedCheckbox.checked) {
newValue = parseInt(exceedValueNode.value);
} else {
newValue = parseInt(updateContainer.querySelector('.update-dialog-timeline-marker:first-child').getAttribute('data-value'));
newValue = parseInt(updateContainer.querySelector('.update-dialog-timeline-marker:nth-last-child(2)').getAttribute('data-value'));
}

if (updateId !== 'add') {
Expand Down

0 comments on commit 0dd9f62

Please sign in to comment.