mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°1344 - Save without all mandatory attributes (ajax reload not finished)
This commit is contained in:
@@ -422,6 +422,7 @@ Dict::Add('EN US', 'English', 'English', array(
|
|||||||
'UI:Button:Insert' => 'Insert',
|
'UI:Button:Insert' => 'Insert',
|
||||||
'UI:Button:More' => 'More',
|
'UI:Button:More' => 'More',
|
||||||
'UI:Button:Less' => 'Less',
|
'UI:Button:Less' => 'Less',
|
||||||
|
'UI:Button:Wait' => 'Please wait while updating fields',
|
||||||
|
|
||||||
'UI:SearchToggle' => 'Search',
|
'UI:SearchToggle' => 'Search',
|
||||||
'UI:ClickToCreateNew' => 'Create a new %1$s',
|
'UI:ClickToCreateNew' => 'Create a new %1$s',
|
||||||
|
|||||||
@@ -405,6 +405,7 @@ Dict::Add('FR FR', 'French', 'Français', array(
|
|||||||
'UI:Button:Insert' => 'Insérer',
|
'UI:Button:Insert' => 'Insérer',
|
||||||
'UI:Button:More' => 'Plus',
|
'UI:Button:More' => 'Plus',
|
||||||
'UI:Button:Less' => 'Moins',
|
'UI:Button:Less' => 'Moins',
|
||||||
|
'UI:Button:Wait' => 'Patientez pendant la mise à jour des champs',
|
||||||
|
|
||||||
'UI:SearchToggle' => 'Recherche',
|
'UI:SearchToggle' => 'Recherche',
|
||||||
'UI:ClickToCreateNew' => 'Créer un nouvel objet de type %1$s',
|
'UI:ClickToCreateNew' => 'Créer un nouvel objet de type %1$s',
|
||||||
|
|||||||
@@ -143,6 +143,13 @@ var oFormErrors = { err_form0: 0 };
|
|||||||
|
|
||||||
function CheckFields(sFormId, bDisplayAlert)
|
function CheckFields(sFormId, bDisplayAlert)
|
||||||
{
|
{
|
||||||
|
// if some fields are in wait, no submit is allowed
|
||||||
|
if ($('#'+sFormId+' .blockMsg').length>0)
|
||||||
|
{
|
||||||
|
alert(Dict.S('UI:Button:Wait'));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$('#'+sFormId+' :submit').prop('disable', true);
|
$('#'+sFormId+' :submit').prop('disable', true);
|
||||||
$('#'+sFormId+' :button[type=submit]').prop('disable', true);
|
$('#'+sFormId+' :button[type=submit]').prop('disable', true);
|
||||||
firstErrorId = '';
|
firstErrorId = '';
|
||||||
@@ -171,6 +178,7 @@ function CheckFields(sFormId, bDisplayAlert)
|
|||||||
$('#'+oFormErrors['input_'+sFormId]).focus();
|
$('#'+oFormErrors['input_'+sFormId]).focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (oFormErrors['err_'+sFormId] == 0); // If no error, submit the form
|
return (oFormErrors['err_'+sFormId] == 0); // If no error, submit the form
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user