PHRAS-187 #fix push name validation

This commit is contained in:
Nicolas Le Goff
2014-07-23 19:21:13 +02:00
parent c8c10f2776
commit 12ae2c8245

View File

@@ -149,13 +149,13 @@
buttons[language.send] = function () { buttons[language.send] = function () {
if ($.trim($('input[name="name"]', $dialog.getDomElement()).val()) === '') { if ($.trim($('input[name="name"]', $dialog.getDomElement()).val()) === '') {
options = { var options = {
size: 'Alert', size: 'Alert',
closeButton: true, closeButton: true,
title: language.warning title: language.warning
}, }
$dialog = p4.Dialog.Create(options, 3); var $dialogAlert = p4.Dialog.Create(options, 3);
$dialog.setContent(language.FeedBackNameMandatory); $dialogAlert.setContent(language.FeedBackNameMandatory);
return false; return false;
} }