Просмотр исходного кода

fixed notify in FileStorage Route

Piotr Labudda 9 лет назад
Родитель
Сommit
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 {