added promt for quiting while uploading

This commit is contained in:
Uvis Grinfelds
2014-11-08 14:58:20 +01:00
parent d13e4d913f
commit 4ed9c515f5
16 changed files with 521 additions and 195 deletions

View File

@@ -34,6 +34,11 @@ $(document).ready(function() {
$('.upload-progress', $(li)).show();
$('.upload-progress .bar', $(li)).css('width', pc + "%");
$('.upload-progress span ').empty().append(pc + "%");
$(window).bind('beforeunload', function(){
return 'File are still uploading';
});
}, false);
xhr.onreadystatechange = function(e) {
@@ -163,4 +168,5 @@ $(document).ready(function() {
}, false);
})();
};
})();