Added return message text to frontend
This commit is contained in:
1 parent
1f18d2b09c
commit
499b8193ab
1 file changed
+3
-1
@@ -50,8 +50,10 @@ var DownloadersBase = new Class({
|
||||
}).inject(button, 'after')
|
||||
}
|
||||
else {
|
||||
var msg_text = 'Connection failed. Check logs for details.';
|
||||
if(json.hasOwnProperty('msg')) msg_text = json.msg;
|
||||
var message = new Element('span.failed', {
|
||||
'text': 'Connection failed. Check logs for details.'
|
||||
'text': msg_text
|
||||
}).inject(button, 'after')
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user