Author: adrianc
Date: Tue Jul 22 09:25:02 2008
New Revision: 678795
URL:
http://svn.apache.org/viewvc?rev=678795&view=revLog:
Fixed problem with collapsible screenlets used in combination with ajax list pagination -
https://issues.apache.org/jira/browse/OFBIZ-1889.
Modified:
ofbiz/trunk/framework/images/webapp/images/selectall.js
Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=678795&r1=678794&r2=678795&view=diff==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Tue Jul 22 09:25:02 2008
@@ -382,12 +382,16 @@
if (menu) {
var childElements = menu.getElementsByTagName('a');
for (var i = 0; i < childElements.length; i++) {
- childElements[i].href = replaceQueryParam(childElements[i].href, currentParam, newParam);
+ if (childElements[i].href.indexOf("href:") >= 0) {
+ childElements[i].href = replaceQueryParam(childElements[i].href, currentParam, newParam);
+ }
}
childElements = menu.getElementsByTagName('select');
for (i = 0; i < childElements.length; i++) {
- Element.extend(childElements[i]);
- childElements[i].writeAttribute("onchange", replaceQueryParam(childElements[i].readAttribute("onchange"), currentParam, newParam));
+ if (childElements[i].href.indexOf("location.href") >= 0) {
+ Element.extend(childElements[i]);
+ childElements[i].writeAttribute("onchange", replaceQueryParam(childElements[i].readAttribute("onchange"), currentParam, newParam));
+ }
}
}
});