mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'nickvergessen/ticket/encryptedmind/11516' into develop
* nickvergessen/ticket/encryptedmind/11516: [ticket/11516] Upgrading the .live jquery function because it is deprecated.
This commit is contained in:
commit
fc1c7211ab
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ function submit_default_button(event, selector, class_name) {
|
||||||
* The non-jQuery code is a mimick of the jQuery code ;)
|
* The non-jQuery code is a mimick of the jQuery code ;)
|
||||||
*/
|
*/
|
||||||
function apply_onkeypress_event() {
|
function apply_onkeypress_event() {
|
||||||
jQuery('form input[type=text], form input[type=password]').live('keypress', function (e) {
|
jQuery('form input[type=text], form input[type=password]').on('keypress', function (e) {
|
||||||
var default_button = jQuery(this).parents('form').find('input[type=submit].default-submit-action');
|
var default_button = jQuery(this).parents('form').find('input[type=submit].default-submit-action');
|
||||||
|
|
||||||
if (!default_button || default_button.length <= 0) {
|
if (!default_button || default_button.length <= 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue