fixed few issues with extjs. Worked on database connection part

This commit is contained in:
safan
2010-12-16 15:15:31 +00:00
parent c59dbc85cc
commit 09ae458466
5 changed files with 49 additions and 49 deletions

View File

@@ -445,7 +445,7 @@ ProcessOptions.prototype.addDynaform= function(_5625)
sDesc = getForm.DYN_DESCRIPTION[1];
}
Ext.Ajax.request({
/*Ext.Ajax.request({
url : '../dynaforms/dynaforms_Save.php',
method: 'POST',
params:{
@@ -455,12 +455,12 @@ ProcessOptions.prototype.addDynaform= function(_5625)
},
success: function(response) {
if(response.responseText == "1")
{
{*/
Ext.Ajax.request({
url : '../dynaforms/dynaforms_Save.php',
method: 'POST',
params:{
functions : '',
functions : 'saveDynaform',
ACTION : sAction,
FIELDS : sData,
ADD_TABLE : sAddTab,
@@ -473,14 +473,14 @@ ProcessOptions.prototype.addDynaform= function(_5625)
Ext.MessageBox.alert ('Status','Dynaform has been created successfully.');
}
});
formWindow.close();
taskDynaform.reload();
}
//formWindow.close();
//taskDynaform.reload();
/*}
else
Ext.MessageBox.alert ('Status','There is an Dynaform with the same name in this process. It is not saving');
Ext.MessageBox.alert ('Status','There is an Dynaform with the same name in this process. It is not saving');*/
}
})
}
// })
//}
},{
text: 'Cancel',
handler: function(){
@@ -580,6 +580,8 @@ ProcessOptions.prototype.addInputDoc= function(_5625)
}
});
}
else
inputDocStore.remove(r);
}
}
});