Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian authored Jan 31, 2019
1 parent c17bad7 commit f8e4cb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ UIkit.util.on(search, 'keyup', function() {
}, 300);
});

// prevent send for on click enter
// prevent send form on press enter
UIkit.util.on(formEl, 'keypress', function(e) {
var key = e.charCode || e.keyCode || 0;
if (key == 13) {
console.log('Prevent submit on press enter');
e.preventDefault();
console.log('Prevent submit on press enter');
}
});

// empty field on click filter
// empty field and attribute on click filter button
UIkit.util.on(filterBtn, 'click', function() {
var inputVal = search.value;
if (inputVal.length) {
Expand Down

0 comments on commit f8e4cb6

Please sign in to comment.