소스 검색

fix leaving page issue

tags/v1.0.0
Remco 9 년 전
부모
커밋
2915f65c23
2개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. +1
    -1
      transfersh-server/static/scripts/main.js
  2. +1
    -5
      transfersh-web/scripts/main.js

+ 1
- 1
transfersh-server/static/scripts/main.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 5
transfersh-web/scripts/main.js 파일 보기

@@ -42,11 +42,6 @@ $(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) {
@@ -60,6 +55,7 @@ $(document).ready(function() {
$(li).html('<span>Error (' + xhr.status + ') during upload of file ' + file.name + '</span>');
}

// file uploaded successfully, remove from queue
var index = queue.indexOf(xhr);
if (index > -1) {
queue.splice(index, 1);


불러오는 중...
취소
저장