Commit e3e6b90c authored by Marc Duez's avatar Marc Duez

database.js : debug warning message if there are ongoing uploads

parent bd90874d
......@@ -5,17 +5,12 @@ function Database(id, db_address) {
this.upload = {};
this.url = []
onbeforeunload = function(e){
window.onbeforeunload = function(e){
if ( self.is_uploading() ){
if(confirm('some uploads are incomplete, do you really want to leave')){
return '';
}
else {
e = e || event;
if(e.preventDefault){e.preventDefault();}
e.returnValue = false;
return 'some uploads are incomplete, do you really want to leave';
}
e = e || event;
if(e.preventDefault){e.preventDefault();}
e.returnValue = false;
return 'some uploads are incomplete, do you really want to leave';
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment