Author: apatel
Date: Thu Jun 26 17:00:28 2008
New Revision: 672059
URL:
http://svn.apache.org/viewvc?rev=672059&view=revLog:
Removed use of form.reset. Set flag to evalStript on Ajax load of html.
Modified:
ofbiz/trunk/framework/example/widget/example/ExampleForms.xml
ofbiz/trunk/framework/images/webapp/images/selectall.js
Modified: ofbiz/trunk/framework/example/widget/example/ExampleForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleForms.xml?rev=672059&r1=672058&r2=672059&view=diff==============================================================================
--- ofbiz/trunk/framework/example/widget/example/ExampleForms.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/ExampleForms.xml Thu Jun 26 17:00:28 2008
@@ -143,6 +143,7 @@
</drop-down>
</field>
<on-event-update-area event-type="submit" area-id="ListExamplesAjax" area-target="ListExampleFormOnly"/>
+ <on-event-update-area event-type="submit" area-id="EditExampleAjax" area-target="CreateExampleFormOnly"/>
</form>
<!-- ExampleItem -->
Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=672059&r1=672058&r2=672059&view=diff==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Thu Jun 26 17:00:28 2008
@@ -232,7 +232,7 @@
var areaArray = areaCsvString.split(",");
var numAreas = parseInt(areaArray.length / 3);
for (var i = 0; i < numAreas * 3; i = i + 3) {
- new Ajax.Updater(areaArray[i], areaArray[i + 1], {parameters: areaArray[i + 2], onComplete: responseFunction});
+ new Ajax.Updater(areaArray[i], areaArray[i + 1], {parameters: areaArray[i + 2], onComplete: responseFunction,evalScripts: true });
}
}
@@ -300,7 +300,6 @@
$('content-messages').removeClassName('errorMessage');
new Effect.Fade('content-messages',{duration: 0.0});
}
- $(form).reset();
ajaxUpdateAreas(areaCsvString);
}
}