mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
fix deprecated warning returnValue use preventDefault()
This commit is contained in:
parent
f99ae4af0d
commit
85e844fd9b
2
phpgwapi/js/jquery/jquery.js
vendored
2
phpgwapi/js/jquery/jquery.js
vendored
@ -5371,7 +5371,7 @@ jQuery.Event = function( src, props ) {
|
||||
|
||||
// Events bubbling up the document may have been marked as prevented
|
||||
// by a handler lower down the tree; reflect the correct value.
|
||||
this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
|
||||
this.isDefaultPrevented = ( src.defaultPrevented || src.preventDefault() === false ||
|
||||
src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
|
||||
|
||||
// Event type
|
||||
|
Loading…
Reference in New Issue
Block a user