소스 검색

fixed notify in FileStorage Route

Piotr Labudda 9 년 전
부모
커밋
d68a519077
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      SE/se-lib/Route/FileStorage.php

+ 1 - 1
SE/se-lib/Route/FileStorage.php

@@ -232,7 +232,7 @@ function uploadFileAsStream(file) {
 				jQuery.notify("Wystąpił błąd: " + res.text, 'error')
 			} else if (res.body && res.body.msg && res.body.type) {
 				var notifyType = ('danger' == res.body.type) ? 'error' : res.body.type;
-				jQuery.notify(res.body.msg, notifyType)
+				jQuery.notify("Wgrano plik:" + JSON.stringify(res.body), notifyType)
 			} else if (res.body && res.body.id && res.body.id > 0) {
 				jQuery.notify("Wgrano plik:" + JSON.stringify(res.body), 'success')
 			} else {