Changeset 2484

Show
Ignore:
Timestamp:
06/02/08 18:26:01 (21 months ago)
Author:
bsmith
Message:

bugzid:79490 - Fixing Config Wizard js errors on mail settings screen

Location:
branches/release-39/tmpl/wizard
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/tmpl/wizard/optional.tmpl

    r1309 r2484  
    5353</div> 
    5454 
    55 <br /><p id="more"><a href="javascript:void(0)" onclick="hide('buttons'); hide('more'); show('settings');"><__trans phrase="Show current mail settings"></a></p> 
     55<br /><p id="more"><a href="javascript:void(0)" onclick="hideByID('buttons'); hideByID('more'); showByID('settings');"><__trans phrase="Show current mail settings"></a></p> 
    5656</mt:if> 
    5757 
  • branches/release-39/tmpl/wizard/packages.tmpl

    r1309 r2484  
    7878    <mtapp:statusmsg 
    7979        id="missing_db" 
    80         class="error"> 
     80        class="error" 
     81        can_close="0"> 
    8182        <__trans phrase="Missing Database Modules"> 
    8283    </mtapp:statusmsg> 
     
    8586    <mtapp:statusmsg 
    8687        id="optional" 
    87         class="info"> 
     88        class="info" 
     89        can_close="0"> 
    8890        <__trans phrase="Missing Optional Modules"> 
    8991    </mtapp:statusmsg> 
     
    9294    <mtapp:statusmsg 
    9395        id="required" 
    94         class="error"> 
     96        class="error" 
     97        can_close="0"> 
    9598        <__trans phrase="Missing Required Modules"> 
    9699    </mtapp:statusmsg> 
  • branches/release-39/tmpl/wizard/start.tmpl

    r1309 r2484  
    7272        .no-static-path, 
    7373        fieldset { 
    74 /*            border: 1px solid #C60;*/ 
    75 /*            color: #C60;*/ 
    76 /*            background: #feffb4;*/ 
    7774            border: 1px solid #cfdde5; 
    78 /*            color: #666;*/ 
    7975            background: #fff; 
    8076            padding: 10px; 
     
    108104        </style> 
    109105 
    110 <script type="text/javascript"> 
    111 /* <![CDATA[ */ 
    112 function getByID(n, d) { 
    113     if (!d) d = document; 
    114     if (d.getElementById) 
    115         return d.getElementById(n); 
    116     else if (d.all) 
    117         return d.all[n]; 
    118 } 
    119  
    120 function hide(id, d) { 
    121     var el = getByID(id, d); 
    122     if (!el) return; 
    123     el.style.display = 'none'; 
    124 } 
    125 /* ]]> */ 
    126 </script> 
     106        <script type="text/javascript"> 
     107        /* <![CDATA[ */ 
     108        function getByID(n, d) { 
     109            if (!d) d = document; 
     110            if (d.getElementById) 
     111                return d.getElementById(n); 
     112            else if (d.all) 
     113                return d.all[n]; 
     114        } 
     115        /* ]]> */ 
     116        </script> 
    127117    </mt:setvarblock> 
    128118<mt:else> 
    129 <mt:setvarblock name="js_include" append="1"> 
    130 <style type="text/css"> 
    131 .msg { 
    132     margin: 0 0 10px 0; 
    133     padding: 16px 10px 16px 10px; 
    134 } 
    135 .msg-error { 
    136     background-color: #FF9; 
    137 } 
    138 #container  div.no-static-path, 
    139 #container #static_webpath_config { 
    140     display: none; 
    141 } 
    142 #container.bad-static-path div.no-static-path, 
    143 #container.bad-static-path #static_webpath_config { 
    144     display: block; 
    145 } 
    146 </style> 
    147 <script type="text/javascript"> 
    148 /* <![CDATA[ */ 
    149 function js_check() { 
    150     if (! openManual ) { 
    151         // mt.js not loading properly; static path incorrect 
    152         var c = getByID("container"); 
    153         c.className = "bad-static-path"; 
    154     } 
    155 } 
    156 window.onload = js_check; 
    157 /* ]]> */ 
    158 </script> 
    159 </mt:setvarblock> 
     119    <mt:setvarblock name="js_include" append="1"> 
     120        <style type="text/css"> 
     121        .msg { 
     122            margin: 0 0 10px 0; 
     123            padding: 16px 10px 16px 10px; 
     124        } 
     125        .msg-error { 
     126            background-color: #FF9; 
     127        } 
     128        #container  div.no-static-path, 
     129        #container #static_webpath_config { 
     130            display: none; 
     131        } 
     132        #container.bad-static-path div.no-static-path, 
     133        #container.bad-static-path #static_webpath_config { 
     134            display: block; 
     135        } 
     136        </style> 
     137        <script type="text/javascript"> 
     138        /* <![CDATA[ */ 
     139        function js_check() { 
     140            if (! openManual ) { 
     141                // mt.js not loading properly; static path incorrect 
     142                var c = getByID("container"); 
     143                c.className = "bad-static-path"; 
     144            } 
     145        } 
     146        window.onload = js_check; 
     147        /* ]]> */ 
     148        </script> 
     149    </mt:setvarblock> 
    160150</mt:unless> 
    161151