Skip to contentSkip to conversation

conga/luci/plone-custom conga.js conga_ajax.js ...

Cluster-devel [email protected] 1 participant 1 message Dec 12, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-12-12 15:50:18

Modified files:
luci/plone-custom: conga.js conga_ajax.js luci.css

Log message:
UI support for new validation

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/conga.js.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/conga_ajax.js.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/luci.css.diff?cvsroot=cluster&r1=1.1&r2=1.2

luci/plone-custom/conga.js +25 -0
@@ -189,3 +189,28 @@
 	}
 	elem.parentNode.removeChild(elem);
 }
+
+function swap_tabs(new_label, cur_tab, new_tab) {
+	if (cur_tab == new_tab) {
+		return (cur_tab);
+	}
+	var new_tab_elem = document.getElementById(new_tab);
+	if (!new_tab_elem) {
+		return (cur_tab);
+	}
+	var cur_tab_elem = document.getElementById(cur_tab);
+	if (!cur_tab_elem) {
+		return (cur_tab);
+	}
+	try {
+		cur_tab_elem.className += ' invisible';
+
+		new_tab_elem.className = new_tab_elem.className.replace(/invisible/gi, '');
+		new_label.className += 'configTab configTabActive';
+		var cur_label = document.getElementById(cur_tab + '_label');
+		cur_label.className = 'configTab';
+	} catch (e) {
+		return (cur_tab);
+	}
+	return (new_tab);
+}
luci/plone-custom/conga_ajax.js +2 -2
@@ -136,8 +136,8 @@
 	}
 
 	try {
-		vd.className.replace(/invisible/gi, '');
-	} catch (...) {
+		vd.className = vd.className.replace(/invisible/gi, '');
+	} catch (e) {
 		/* ignore it */;
 	}
 }
luci/plone-custom/luci.css +1 -1
@@ -138,7 +138,7 @@
 	border-bottom: none ! important;
 }
 
-#configTabContent {
+div.configTabMainContent {
 	background: #dee7ec !important;
 	margin-top: 0px !important;
 	padding: 20px !important;