From: <aca...@us...> - 2007-04-16 20:04:57
|
Revision: 385 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=385&view=rev Author: acarboni Date: 2007-04-16 13:04:59 -0700 (Mon, 16 Apr 2007) Log Message: ----------- Tried to fix Ajax with IE but with no success (V2) Modified Paths: -------------- trunk/web/scripts/harvest-view.js trunk/web/scripts/harvesting.js Modified: trunk/web/scripts/harvest-view.js =================================================================== --- trunk/web/scripts/harvest-view.js 2007-04-16 19:43:32 UTC (rev 384) +++ trunk/web/scripts/harvest-view.js 2007-04-16 20:04:59 UTC (rev 385) @@ -213,9 +213,9 @@ //===================================================================================== -HarvestView.prototype.append = function(xmlNode) +HarvestView.prototype.append = function(xml) { - this.rowTransf.transform(xmlNode, this.appendCallBack); + this.rowTransf.transform(xml, this.appendCallBack); } //------------------------------------------------------------------------------------- Modified: trunk/web/scripts/harvesting.js =================================================================== --- trunk/web/scripts/harvesting.js 2007-04-16 19:43:32 UTC (rev 384) +++ trunk/web/scripts/harvesting.js 2007-04-16 20:04:59 UTC (rev 385) @@ -38,10 +38,10 @@ Harvesting.prototype.editSuccess = function(xml) { - if (xmlEntry.nodeName == 'error') - gn.showError(xmlLoader.getText('cannotGet'), xmlEntry); + if (xml.nodeName == 'error') + gn.showError(xmlLoader.getText('cannotGet'), xml); else - view.edit(xmlEntry); + view.edit(xml); } //===================================================================================== @@ -107,11 +107,11 @@ Harvesting.prototype.addSuccess = function(xml) { - if (xmlNode.nodeName == 'error') - gn.showError(xmlLoader.getText('cannotAdd'), xmlNode); + if (xml.nodeName == 'error') + gn.showError(xmlLoader.getText('cannotAdd'), xml); else { - view.append(xmlNode); + view.append(xml); view.show(SHOW.LIST); } } @@ -120,11 +120,11 @@ Harvesting.prototype.updateSuccess = function(xml) { - if (xmlNode.nodeName == 'error') - gn.showError(xmlLoader.getText('cannotUpdate'), xmlNode); + if (xml.nodeName == 'error') + gn.showError(xmlLoader.getText('cannotUpdate'), xml); else { - view.refresh(xmlNode); + view.refresh(xml); view.show(SHOW.LIST); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |