From 85e844fd9bd08f72516223ba02abaab521e3732d Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 12 Feb 2014 08:10:58 +0000 Subject: [PATCH] fix deprecated warning returnValue use preventDefault() --- phpgwapi/js/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jquery/jquery.js b/phpgwapi/js/jquery/jquery.js index 0b094c55db..6790aa5160 100644 --- a/phpgwapi/js/jquery/jquery.js +++ b/phpgwapi/js/jquery/jquery.js @@ -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