this.saveMsg=Rico.$(liveGrid.tableId+'_savemsg');
Rico.eventBind(document,"click", Rico.eventHandle(this,'clearSaveMsg'));
this.extraMenuItems=[];
- this.responseHandler=function() { self.processResponse(); };
+ this.responseHandler=function(xhr) { self.processResponse(xhr); };
Rico.log("Rico.TableEdit.initialize complete");
},
processResponse: function(xhr) {
var responseText,success=true;
- Rico.log('Processing response from form submittal');
+ Rico.log('Processing response from form submittal: '+typeof(xhr));
this.responseDiv.innerHTML=xhr.responseText;
var respNodes=Rico.select('.ricoFormResponse',this.responseDiv);
if (respNodes) {
// generate a translated response
+ Rico.log('Found ricoFormResponse');
var phraseId=Rico.trim(respNodes[0].className).split(/\s+/)[1];
responseText=Rico.getPhraseById(phraseId,this.options.RecordName);
} else {
// present the response as sent from the server (untranslated)
+ Rico.log('Processing response text');
var ch=this.responseDiv.childNodes;
for (var i=ch.length-1; i>=0; i--) {
if (ch[i].nodeType==1 && ch[i].nodeName!='P' && ch[i].nodeName!='DIV' && ch[i].nodeName!='BR')