mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Allow search submission on keypress
This commit is contained in:
@@ -865,4 +865,15 @@ function um_reset_field( dOm ){
|
||||
.val('')
|
||||
.removeAttr('checked')
|
||||
.removeAttr('selected');
|
||||
}
|
||||
}
|
||||
|
||||
jQuery(function(){
|
||||
|
||||
jQuery(".um-search form *").keypress(function(e){
|
||||
if (e.which == 13) {
|
||||
jQuery('.um-search form').submit();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user