Skip to content

Commit

Permalink
Improving point replacement code
Browse files Browse the repository at this point in the history
  • Loading branch information
onilton committed Mar 5, 2015
1 parent 1f1261a commit 009495a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trelloscrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,7 @@ function showPointPickerChecklist(location) {
var text = $text.val();

// replace our new
var replaceText = text.match(reg)?text.replace(reg, '('+value+') '):'('+value+') ' + text;
$text.val(replaceText);
$text[0].value=text.match(reg)?text.replace(reg, '('+value+') '):'('+value+') ' + text;

// then click our button so it all gets saved away
$(".checklist-item-details .edit .js-save-edit").click();
Expand Down

0 comments on commit 009495a

Please sign in to comment.