Update of
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/repository
In directory
james.mmbase.org:/tmp/cvs-serv17350/cmsc/contentrepository/src/webapp/editors/repository
Modified Files:
search.js
Log Message:
CMSC-681 Asset Maintenance select the element type in the advanced search
cause js error.
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/repository
See also: http://www.mmbase.org/jira/browse/CMSC-681
Index: search.js
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/repository/search.js,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- search.js 2 Dec 2008 03:46:28 -0000 1.7
+++ search.js 7 Jan 2009 07:14:49 -0000 1.8
@@ -26,11 +26,13 @@
function selectContenttype(initUrl) {
// parentchannel is only there when linking is active...
+ if(document.forms[0].parentchannel){
try {
document.forms[0].parentchannel.value='';
} catch (e) {
;
}
+ }
// This doesn't work in IE...
// document.forms[0].action=initUrl;
document.forms[0].submit();
@@ -63,11 +65,13 @@
function selectAssettype(initUrl) {
// parentchannel is only there when linking is active...
+ if(document.forms[0].parentchannel){
try {
document.forms[0].parentchannel.value='';
} catch (e) {
;
}
+ }
// This doesn't work in IE...
// document.forms[0].action=initUrl;
document.forms[0].submit();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs