Merge pull request #1111 from julceslauhub/master
BUG 10211 No existe validacion en la opcion "Base Skin", el mismo puede guardarse sin seleccionar el skin de base SOLVED
This commit is contained in:
@@ -524,14 +524,18 @@ newSkin = function(){
|
|||||||
PMExt.notify(_('ID_SKINS'),_('ID_SKIN_SUCCESS_CREATE'));
|
PMExt.notify(_('ID_SKINS'),_('ID_SKIN_SUCCESS_CREATE'));
|
||||||
},
|
},
|
||||||
failure: function(form, action) {
|
failure: function(form, action) {
|
||||||
Ext.getCmp("newDialog").destroy();
|
if (typeof(action.failureType) != 'undefined') {
|
||||||
|
Ext.MessageBox.alert("error", _('ID_REQUIRED_FIELDS_ERROR'));
|
||||||
if( !action.result ) {
|
newDialog.getEl().unmask();
|
||||||
Ext.MessageBox.alert("error", action.response.responseText);
|
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
Ext.getCmp("newDialog").destroy();
|
||||||
|
if( !action.result ) {
|
||||||
|
Ext.MessageBox.alert("error", action.response.responseText);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Ext.MessageBox.alert("error", action.result.error);
|
||||||
}
|
}
|
||||||
Ext.MessageBox.alert("error", action.result.error);
|
|
||||||
|
|
||||||
},
|
},
|
||||||
scope: Ext.getCmp("newform"),
|
scope: Ext.getCmp("newform"),
|
||||||
// add some vars to the request, similar to hidden fields
|
// add some vars to the request, similar to hidden fields
|
||||||
|
|||||||
Reference in New Issue
Block a user