Add Counter #5

Closed
amovah wants to merge 14 commits from master into master
Showing only changes of commit c312e52fab - Show all commits

View File

@ -7,7 +7,7 @@ $('li[contenteditable]').click(function(e) {
});
$('li[contenteditable]').on('keydown', function(e) {
if(e.keyCode !== 8 && isNaN(+e.key)) return e.preventDefault();
if(e.keyCode !== 8 && e.keyCode !== 46 && isNaN(+e.key)) return e.preventDefault();
});
$('li[contenteditable]').on('keyup', function(e) {
$(this).data('val', /\d*/.exec($(this).html()));