CVSROOT:        /cvs/cluster
Module name:    conga
Changes by:     [EMAIL PROTECTED]       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

--- conga/luci/plone-custom/conga.js    2007/11/27 16:58:18     1.8
+++ conga/luci/plone-custom/conga.js    2007/12/12 15:50:18     1.9
@@ -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);
+}
--- conga/luci/plone-custom/conga_ajax.js       2007/11/27 16:58:18     1.5
+++ conga/luci/plone-custom/conga_ajax.js       2007/12/12 15:50:18     1.6
@@ -136,8 +136,8 @@
        }
 
        try {
-               vd.className.replace(/invisible/gi, '');
-       } catch (...) {
+               vd.className = vd.className.replace(/invisible/gi, '');
+       } catch (e) {
                /* ignore it */;
        }
 }
--- conga/luci/plone-custom/luci.css    2007/11/27 16:58:18     1.1
+++ conga/luci/plone-custom/luci.css    2007/12/12 15:50:18     1.2
@@ -138,7 +138,7 @@
        border-bottom: none ! important;
 }
 
-#configTabContent {
+div.configTabMainContent {
        background: #dee7ec !important;
        margin-top: 0px !important;
        padding: 20px !important;

Reply via email to