From bc629bf4416d389f27416370ea26907e3411d8bc Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 28 Mar 2012 23:27:31 -0400 Subject: [PATCH] CC-3537: When you try to navigate away while uploading you get a "false" message -fixed --- airtime_mvc/public/js/airtime/library/plupload.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/airtime_mvc/public/js/airtime/library/plupload.js b/airtime_mvc/public/js/airtime/library/plupload.js index 3a9bc616f..68ef61c62 100644 --- a/airtime_mvc/public/js/airtime/library/plupload.js +++ b/airtime_mvc/public/js/airtime/library/plupload.js @@ -55,9 +55,7 @@ $(document).ready(function() { $(window).bind('beforeunload', function(){ if(uploadProgress){ - if(!confirm("You are currently uploading files.\nGoing to another screen will cancel the upload process.\nAre you sure you want to cancel the upload process and go to the screen you clicked on?")){ - return false; - } + return "You are currently uploading files.\nGoing to another screen will cancel the upload process.\nAre you sure you want to leave the page?"; } });