瀏覽代碼

Undo button-if-ication of top actions. This breaks in IE.

Chris McDonough 17 年之前
父節點
當前提交
a04b3b880d
共有 2 個文件被更改,包括 18 次插入28 次删除
  1. 4 8
      src/supervisor/ui/status.html
  2. 14 20
      src/supervisor/ui/stylesheets/supervisor.css

+ 4 - 8
src/supervisor/ui/status.html

@@ -17,14 +17,10 @@
     <div class="hidden" meld:id="statusmessage">#</div>
     <div class="hidden" meld:id="statusmessage">#</div>
 
 
     <form meld:id="form" action="index.html" method="post">
     <form meld:id="form" action="index.html" method="post">
-
-      <ul class="clr" id="buttons">
-        <li id="refresh"><button type="submit" name="action"
-                  value="refresh"/>&amp;nbsp;</li>
-        <li id="restart_all"><button type="submit" name="action"
-                  value="restartall"/>&amp;nbsp;</li>
-        <li id="stop_all"><button type="submit" name="action"
-                 value="stopall"/>&amp;nbsp;</li>
+      <ul id="buttons" class="clr">
+        <li id="refresh"><a href="/index.html?action=refresh">&amp;nbsp;</a></li>
+        <li id="restart_all"><a href="/index.html?action=restartall">&amp;nbsp;</a></li>
+        <li id="stop_all"><a href="/index.html?action=stopall">&amp;nbsp;</a></li>
       </ul>
       </ul>
 
 
       <table cellspacing="0" meld:id="statustable">
       <table cellspacing="0" meld:id="statustable">

+ 14 - 20
src/supervisor/ui/stylesheets/supervisor.css

@@ -89,7 +89,6 @@ a:hover {
   padding: 10px 0 13px 0;
   padding: 10px 0 13px 0;
   background: url("../images/rule.gif") left bottom repeat-x;
   background: url("../images/rule.gif") left bottom repeat-x;
 }
 }
-
 .status_msg {
 .status_msg {
   padding: 5px 10px;
   padding: 5px 10px;
   border: 1px solid #919191;
   border: 1px solid #919191;
@@ -100,44 +99,39 @@ a:hover {
 #buttons {
 #buttons {
   margin: 13px 0;
   margin: 13px 0;
 }
 }
-
 #buttons li {
 #buttons li {
   float: left;
   float: left;
   display: block;
   display: block;
   margin: 0 7px 0 0;
   margin: 0 7px 0 0;
 }
 }
-
-#buttons button {
-   float: left;
-   display: block;
-   padding: 1px 0 0 0 0;
-   text-decoration: none;
+#buttons a {
+  float: left;
+  display: block;
+  padding: 1px 0 0 0;
+}
+#buttons a, #buttons a:link {
+  text-decoration: none;
 }
 }
 
 
-#refresh button {
+#refresh a {
   width: 62px;
   width: 62px;
   background: url("../images/button_refresh.gif") 0 0 no-repeat;
   background: url("../images/button_refresh.gif") 0 0 no-repeat;
 }
 }
-
-#refresh button:hover {
+#refresh a:hover {
   background-position: -62px;
   background-position: -62px;
 }
 }
-
-#restart_all button {
+#restart_all a {
   width: 84px;
   width: 84px;
   background: url("../images/button_restart.gif") 0 0 no-repeat;
   background: url("../images/button_restart.gif") 0 0 no-repeat;
 }
 }
-
-#restart_all button:hover {
+#restart_all a:hover {
   background-position: -84px;
   background-position: -84px;
 }
 }
-
-#stop_all button {
-  width: 64px;
+#stop_all a {
+  width: 65px;
   background: url("../images/button_stop.gif") 0 0 no-repeat;
   background: url("../images/button_stop.gif") 0 0 no-repeat;
 }
 }
-
-#stop_all button:hover {
+#stop_all a:hover {
   background-position: -65px;
   background-position: -65px;
 }
 }