jQuery modernization : removed and replaced calls to deprecated methods in jquery 1.12.4

SVN:trunk[5358]
This commit is contained in:
Stephen Abello
2018-02-22 09:24:42 +00:00
parent ebb541e4f5
commit 862d08f57d
9 changed files with 370 additions and 373 deletions

View File

@@ -2404,7 +2404,7 @@ EOF
$sJSToken = json_encode($sOwnershipToken);
$oPage->add_ready_script(
<<<EOF
$(window).unload(function() { return OnUnload('$iTransactionId', '$sClass', $iKey, $sJSToken) } );
$(window).on('unload',function() { return OnUnload('$iTransactionId', '$sClass', $iKey, $sJSToken) } );
window.onbeforeunload = function() {
if (!window.bInSubmit && !window.bInCancel)
{
@@ -2756,7 +2756,7 @@ EOF
<<<EOF
// Starts the validation when the page is ready
CheckFields('apply_stimulus', false);
$(window).unload(function() { return OnUnload('$iTransactionId', '$sClass', $iKey, $sJSToken) } );
$(window).on('unload', function() { return OnUnload('$iTransactionId', '$sClass', $iKey, $sJSToken) } );
EOF
);