Permalink
Browse files

more notes

  • Loading branch information...
1 parent 8d03403 commit 8cc18078e8b44cd948a175dcedd29b8db150a3ad @alexkingorg committed Jan 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.html
View
@@ -102,10 +102,10 @@
}
}
}).live('keyup', function(e) {
-// do math
if (!keyUp) {
return;
}
+// do math
$(this).trigger('calc');
// if key = enter, set focus to result and select for easy copying
if (e.which === 13) {
@@ -128,8 +128,8 @@
$(this).closest('.equation').find('.result').val(val);
}).filter(':first').focus();
$('.equation .result').live('keyup', function(e) {
-// auto-create new row
if (e.which === 13) {
+// auto-create new row on return key
e.stopPropagation();
$('.new-eq').click();
}

0 comments on commit 8cc1807

Please sign in to comment.