Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

more notes

  • Loading branch information...
commit 8cc18078e8b44cd948a175dcedd29b8db150a3ad 1 parent 8d03403
Alex King authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 index.html
4 index.html
@@ -102,10 +102,10 @@
102 102 }
103 103 }
104 104 }).live('keyup', function(e) {
105   -// do math
106 105 if (!keyUp) {
107 106 return;
108 107 }
  108 +// do math
109 109 $(this).trigger('calc');
110 110 // if key = enter, set focus to result and select for easy copying
111 111 if (e.which === 13) {
@@ -128,8 +128,8 @@
128 128 $(this).closest('.equation').find('.result').val(val);
129 129 }).filter(':first').focus();
130 130 $('.equation .result').live('keyup', function(e) {
131   -// auto-create new row
132 131 if (e.which === 13) {
  132 +// auto-create new row on return key
133 133 e.stopPropagation();
134 134 $('.new-eq').click();
135 135 }

0 comments on commit 8cc1807

Please sign in to comment.
Something went wrong with that request. Please try again.