r15782 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15781‎ | r15782 | r15783 >
Date:17:36, 22 July 2006
Author:greg
Status:old
Tags:
Comment:
Take out "firstrun" javacript var: no longer needed with moved logic.
Modified paths:
  • /trunk/phase3/config/index.php (modified) (history)

Diff [purge]

Index: trunk/phase3/config/index.php
@@ -144,7 +144,6 @@
145145 </style>
146146 <script type="text/javascript">
147147 <!--
148 - var firstrun = 1;
149148 function hideall() {
150149 <?php foreach (array_keys($ourdb) as $db) {
151150 echo "\n document.getElementById('$db').style.display='none';";
@@ -156,13 +155,6 @@
157156 hideall();
158157 var dbarea = document.getElementById(id).style;
159158 dbarea.display = (dbarea.display == 'none') ? 'block' : 'none';
160 - if (firstrun == 1) {
161 - firstrun = 0;
162 - return;
163 - }
164 - if (firstrun ==2 ) {
165 - return;
166 - }
167159 var db = document.getElementById('RootUser');
168160 <?php foreach (array_keys($ourdb) as $db) {
169161 echo "\n if (id == '$db') { db.value = '".$ourdb[$db]['rootuser']."';}";