diff options
author | Christoph Brill <egore911@egore911.de> | 2012-03-26 00:53:02 +0200 |
---|---|---|
committer | Christoph Brill <egore911@egore911.de> | 2012-03-26 00:54:08 +0200 |
commit | aa81170732fdf63bf0f0b425edfb5680e0c2ad22 (patch) | |
tree | 24393f11c6a97c9c2b2b7536b2bdc6c2f4b5a8b6 /index.php | |
parent | 630a1bdb912dee9c5aa10541b3a0a0fe7ef0d042 (diff) |
Switch the menu switcher to an image
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -63,15 +63,18 @@ if (isset($date)) { <!-- function showHideMenu() { - $s = document.getElementById("setupdiv"); - $b = document.getElementById("showhidebutton"); - - if ($s.style.visibility == "hidden") { - $s.style.visibility = ""; - $b.value = "Hide menu"; + var setupdiv = document.getElementById("setupdiv"); + showhidebutton = document.getElementById("showhidebutton"); + showhidebuttonimage = document.getElementById("showhidebuttonimage"); + + if (setupdiv.style.visibility == "hidden") { + setupdiv.style.visibility = ""; + showhidebutton.title = "Hide menu"; + showhidebuttonimage.src = "images/application_form_delete.png"; } else { - $s.style.visibility = "hidden"; - $b.value = "Show menu"; + setupdiv.style.visibility = "hidden"; + showhidebutton.title = "Show menu"; + showhidebuttonimage.src = "images/application_form.png"; } } @@ -224,7 +227,7 @@ if (!isset($date)) { echo ' </div> <hr/> <label for="date">Enter date of the log to open:</label><input id="date" size="10" maxlength="10" name="date" value="'.$date.'" onkeyup="javascript:makeValid(\'date\')" onblur="javascript:makeValidFinal(this, \'date\', \'date_chooser\', 1950, 2049, Date.patterns.ISO8601ShortPattern, false)" type="text"/><img src="images/calendar.png" alt="Choose date" onclick="showChooser(this, \'date\', \'date_chooser\', 1950, 2049, Date.patterns.ISO8601ShortPattern, false);"/><div id="date_chooser" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;"></div> <input value="OK" type="submit"/> -<input type="button" onclick="showHideMenu()" value="Show menu" id="showhidebutton"/> </form> +<a href="#" onclick="showHideMenu(); return false;" value="Show menu" id="showhidebutton"><img id="showhidebuttonimage" src="images/application_form.png" /></a> </form> <hr/>'.PHP_EOL; $filename = 'dri-devel-'.$date.'.log'; |