Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtill committed May 26, 2018
1 parent c964406 commit 4365b70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions static/categorize.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function activateButton(theid) {
}
}

function isEnter(event, theid) {
if (event.keyCode == 13) {
categorize(theid);
}
}
// function isConfirmed(event, theid) {
// if (event.keyCode == 13) {
// categorize(theid);
// }
// }
2 changes: 1 addition & 1 deletion views/categorize.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<td title="{{title}}">{{shorttitle}}</td>
<td>{{amountcurrency}}</td>
<td>
<input type="text" id="item-{{theid}}" origValue="{{thecategory}}" list="catlist" value="{{thecategory}}" onkeyup="isEnter(event, '{{theid}}')" oninput="activateButton('{{theid}}')">
<input type="text" id="item-{{theid}}" origValue="{{thecategory}}" list="catlist" value="{{thecategory}}" oninput="activateButton('{{theid}}')">
<img src="/static/ok.png" id="button-{{theid}}" style="display:none" onclick="categorize('{{theid}}')">
</td>
</tr>
Expand Down

0 comments on commit 4365b70

Please sign in to comment.