Changed summary bar ordering <input type="image">s to <button>s

Fixes a bug which caused the ordering to be non-functional.
This commit is contained in:
str4d
2012-11-25 02:39:49 +00:00
parent abe29e044f
commit 4d389f75a2
5 changed files with 28 additions and 20 deletions

View File

@@ -852,29 +852,29 @@ public class SummaryHelper extends HelperBase {
.append(i) .append(i)
.append("\">"); .append("\">");
if (i > 0) { if (i > 0) {
buf.append("<input type=\"image\" class=\"buttonTop\" name=\"move_") buf.append("<button type=\"submit\" class=\"buttonTop\" name=\"action\" value=\"move_")
.append(i) .append(i)
.append("_top\" alt=\"") .append("_top\"><img alt=\"")
.append(_("Top")) .append(_("Top"))
.append("\" src=\"" + imgPath + "move_top.png\">"); .append("\" src=\"" + imgPath + "move_top.png\" /></button>");
buf.append("<input type=\"image\" class=\"buttonUp\" name=\"move_") buf.append("<button type=\"submit\" class=\"buttonUp\" name=\"action\" value=\"move_")
.append(i) .append(i)
.append("_up\" alt=\"") .append("_up\"><img alt=\"")
.append(_("Up")) .append(_("Up"))
.append("\" src=\"" + imgPath + "move_up.png\">"); .append("\" src=\"" + imgPath + "move_up.png\" /></button>");
} }
buf.append("</td><td align=\"left\">"); buf.append("</td><td align=\"left\">");
if (i < sections.size() - 1) { if (i < sections.size() - 1) {
buf.append("<input type=\"image\" class=\"buttonDown\" name=\"move_") buf.append("<button type=\"submit\" class=\"buttonDown\" name=\"action\" value=\"move_")
.append(i) .append(i)
.append("_down\" alt=\"") .append("_down\"><img alt=\"")
.append(_("Down")) .append(_("Down"))
.append("\" src=\"" + imgPath + "move_down.png\">"); .append("\" src=\"" + imgPath + "move_down.png\" /></button>");
buf.append("<input type=\"image\" class=\"buttonBottom\" name=\"move_") buf.append("<button type=\"submit\" class=\"buttonBottom\" name=\"action\" value=\"move_")
.append(i) .append(i)
.append("_bottom\" alt=\"") .append("_bottom\"><img alt=\"")
.append(_("Bottom")) .append(_("Bottom"))
.append("\" src=\"" + imgPath + "move_bottom.png\">"); .append("\" src=\"" + imgPath + "move_bottom.png\" /></button>");
} }
buf.append("</td></tr>\n"); buf.append("</td></tr>\n");
} }

View File

@@ -535,9 +535,11 @@ div.configure h2:first-child {
margin-top: 15px; margin-top: 15px;
} }
.sidebarconf input[type="image"] { .sidebarconf button {
margin: 2px; margin: 2px;
padding: 1px; padding: 1px;
min-width: 0;
background: none;
} }
.sidebarconf th:nth-child(1) { .sidebarconf th:nth-child(1) {

View File

@@ -452,9 +452,11 @@ div.configure {
background: none;/* url(images/camotile2.png);*/ background: none;/* url(images/camotile2.png);*/
} }
.sidebarconf input[type="image"] { .sidebarconf button {
margin: 2px; margin: 2px;
padding: 1px; padding: 1px;
min-width: 0;
background: none;
} }
.sidebarconf th:nth-child(1) { .sidebarconf th:nth-child(1) {

View File

@@ -509,9 +509,11 @@ div.configure h3, div.graphspanel h3 {
text-align: left; text-align: left;
} }
.sidebarconf input[type="image"] { .sidebarconf button {
margin: 2px; margin: 2px;
padding: 1px; padding: 1px;
min-width: 0;
background: none;
} }
.sidebarconf th:nth-child(1) { .sidebarconf th:nth-child(1) {

View File

@@ -573,9 +573,11 @@ div.configure h2:first-child {
.configure form { .configure form {
margin: 20px 15px; margin: 20px 15px;
} }
.sidebarconf input[type="image"] { .sidebarconf button {
margin: 2px; margin: 2px;
padding: 1px; padding: 1px;
min-width: 0;
background: none;
} }
.sidebarconf th:nth-child(1) { .sidebarconf th:nth-child(1) {