diff --git a/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_checkout.tmpl b/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_checkout.tmpl
index 89ad58df9..a751a22d3 100644
--- a/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_checkout.tmpl
+++ b/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_checkout.tmpl
@@ -57,6 +57,8 @@ function swapBadgeInfo(badgeId) {
var field = document.getElementById(i+'_formId');
if (field && badges[badgeId][i]) {
field.value=badges[badgeId][i];
+ } else {
+ if (field) field.value='';
}
}
}
@@ -98,6 +100,7 @@ if (selector1) {
~~~
+
\ No newline at end of file
diff --git a/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_search.tmpl b/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_search.tmpl
index ee0ace3ab..bb736aaad 100644
--- a/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_search.tmpl
+++ b/docs/upgrades/templates-6.99.0/wgtemplate_default_ems_search.tmpl
@@ -74,20 +74,31 @@
}
return output;
}
-
+ function advSearch() {
+ var mee = document.getElementById('basicSearch')
+ if (mee) mee.style.display='none';
+ var pee = document.getElementById('advSearchDiv');
+ if (pee) pee.style.display='block';
+ }
+ function basicSearch() {
+ var vee = document.getElementById('basicSearch');
+ if (vee) vee.style.display='block';
+ var dee = document.getElementById('advSearchDiv');
+ if (dee) dee.style.display='none';
+ }
-