mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
PHRAS-187 #fix push name validation
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user