Kaynağa Gözat

fixed notify in FileStorage Route

Piotr Labudda 9 yıl önce
ebeveyn
işleme
d68a519077
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 {