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?"; } });