diff options
| author | Jesús Rafael Cova Huerta <jesus_cova88@hotmail.com> | 2013-05-04 19:27:55 -0430 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2013-05-28 01:48:25 +0200 |
| commit | 7f82a95cb0b25bb374c28b0ce5bc1c4ec0e5f913 (patch) | |
| tree | 765849a2faefddaf49be7c7e608fa33288ae8f4e /phpBB/styles/prosilver | |
| parent | 8870d0701f791466badee063c8af8044995698d9 (diff) | |
| download | forums-7f82a95cb0b25bb374c28b0ce5bc1c4ec0e5f913.tar forums-7f82a95cb0b25bb374c28b0ce5bc1c4ec0e5f913.tar.gz forums-7f82a95cb0b25bb374c28b0ce5bc1c4ec0e5f913.tar.bz2 forums-7f82a95cb0b25bb374c28b0ce5bc1c4ec0e5f913.tar.xz forums-7f82a95cb0b25bb374c28b0ce5bc1c4ec0e5f913.zip | |
[ticket/11516] Upgrading the .live jquery function because it is deprecated.
I changed the .live function of jQuery for .on function because a user
reported that he had an error because of that, it showed that .live function
was deprecated, so I changed for .on that it's same but it work with new
jQuery versions.
PHPBB3-11516
Diffstat (limited to 'phpBB/styles/prosilver')
| -rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index ef6b7de418..bb29f00490 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -364,7 +364,7 @@ function submit_default_button(event, selector, class_name) { * The non-jQuery code is a mimick of the jQuery code ;) */ 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'); if (!default_button || default_button.length <= 0) { |
