Merge pull request #844 from romainneutron/fix-1626

[3.8] Fix #1626 : FTP test displays empty message
This commit is contained in:
Romain Neutron
2013-12-17 09:32:18 -08:00

View File

@@ -777,10 +777,10 @@
var options = {
size : 'Alert',
closeButton: true,
title : '{% trans "Warning !" %}'
title : data.success ? '{% trans "Success !" %}' : '{% trans "Warning !" %}'
};
p4.Dialog.Create(options, 2).setContent(data);
p4.Dialog.Create(options, 2).setContent(data.message);
$this.removeAttr('disabled');