PM 669 "Mensaje de alerta no coincide..." SOLVED

Code Issue:
Mensaje de alerta no coincide con la falta realizada en Report Tables Old Version
Solution:
se corrige los mensajes en las validaciones existentes.
This commit is contained in:
Luis Fernando Saisa Lopez
2014-10-23 10:58:58 -04:00
parent 051afc2ed6
commit 25d3251927
2 changed files with 20 additions and 38 deletions

View File

@@ -28,7 +28,7 @@
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.REP_TAB_NAME}</td>
</tr>
<tr>
<td class="FormLabel" width="{$form_labelWidth}"><font color="red">* </font>{$REP_TAB_TYPE}</td>
<td class="FormLabel" width="{$form_labelWidth}">{$REP_TAB_TYPE}</td>
<!-- <td class='FormFieldContent' width="{$form_width}" >{$form.REP_TAB_TYPE} </td> //-->
<td class="FormFieldContent" width="{$form_fieldContentWidth}">{$form.REP_TAB_TYPE}</td>
</tr>
@@ -56,4 +56,4 @@
{$form.JS}
</script>
</form>
</form>

View File

@@ -82,13 +82,16 @@ function cancel(){
function reportTablesSave(form)
{
var bContinue = true;
if (getField('REP_TAB_TITLE').value == '') {
bContinue = false;
if (getField("REP_TAB_TITLE").value.trim() == "") {
new leimnud.module.app.alert().make({label: _("ID_TITLE_REQUIRED")});
return false;
}
if (getField('REP_TAB_NAME').value == '') {
bContinue = false;
if (getField("REP_TAB_NAME").value.trim() == ""){
new leimnud.module.app.alert().make({label: _("ID_NAME_REQUIRED")});
return false;
}
var j = 0;
if (getField('REP_TAB_TYPE').value == 'NORMAL') {
var i;
@@ -100,39 +103,18 @@ function reportTablesSave(form)
}
}
if ((j < 1) || (j > 80)) {
bContinue = false;
}
}
else {
if (getField('REP_TAB_GRID').value == '') {
bContinue = false;
}
}
if (bContinue) {
ajax_post(form.action, form, 'POST');
//currentPopupWindow.remove();
//@#PAGED_TABLE_ID.refresh();
history.back();
}
else {
if (getField('REP_TAB_TYPE').value == 'NORMAL') {
if (j == 0) {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_ENTER_REQUIRED_FIELDS)'
});
}
else {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_SELECT_MAX_X_FIELDS)'
});
}
}
else {
new leimnud.module.app.alert().make({
label:'@G::LoadTranslation(ID_PLEASE_ENTER_REQUIRED_FIELDS)'
});
new leimnud.module.app.alert().make({label: _("ID_SELECT_LEAST_FIELD")});
return false;
}
} else {
if (getField("REP_TAB_GRID").value == "") {
new leimnud.module.app.alert().make({label: _("ID_GRID_FIELDS_REQUIRED")});
return false;
}
}
ajax_post(form.action, form, 'POST');
history.back();
}
function reportTablesDelete(sUID)