summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-11 03:40:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-11 03:40:56 +0000
commite02a6839a87e70db1256f14571a65ec62d11d430 (patch)
tree86949c4b8fe57a290e826eda4d61103098785a5c /usr/local
parent75236e7df742a9e7f52e63d58af8454ada94de87 (diff)
downloadpfsense-e02a6839a87e70db1256f14571a65ec62d11d430.zip
pfsense-e02a6839a87e70db1256f14571a65ec62d11d430.tar.gz
Convert Add to + button, Delete to - button
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php4
-rwxr-xr-xusr/local/www/pkg_edit.php7
-rwxr-xr-xusr/local/www/row_helper.js3
-rwxr-xr-xusr/local/www/row_helper_dynamic.js2
4 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 9d5d457..2b76167 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -280,7 +280,7 @@ rowtype[2] = "select";
</select>
<?php
if($counter > 0)
- echo "<input type=\"button\" onclick=\"removeRow(this); typesel_change();\" value=\"Delete\">";
+ echo "<input type=\"image\" src=\"/x.gif\" onclick=\"removeRow(this); return false;\" value=\"Delete\">";
?>
</td></tr>
@@ -288,7 +288,7 @@ rowtype[2] = "select";
</tbody>
</table>
- <input type="button" onclick="addRowTo('maintable'); typesel_change();" value="Add">
+ <a onClick="javascript:addRowTo('maintable'); return false;" href="#"><img border="0" src="/plus.gif"></a>
</td>
</tr>
<tr>
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 0f88ca0..0cef8f8 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -324,7 +324,7 @@ $config = $config_tmp;
}
$rowcounter=0;
echo "<td>";
- echo "<input type=\"button\" onclick=\"removeRow(this); typesel_change();\" value=\"Delete\">";
+ echo "<input type=\"image\" src=\"/x.gif\" onclick=\"removeRow(this); return false;\" value=\"Delete\">";
echo "</td>\n";
echo "</tr>\n";
}
@@ -333,15 +333,14 @@ $config = $config_tmp;
</tbody>
</table>
- <br><input type="button" onclick="addRowTo('maintable'); typesel_change();" value="Add">
-
+ <br><a onClick="javascript:addRowTo('maintable'); return false;" href="#"><img border="0" src="/plus.gif"></a>
<script language="JavaScript">
<!--
field_counter_js = <?= $fieldcounter ?>;
rows = <?= $rowcounter ?>;
totalrows = <?php echo $rowcounter; ?>;
loaded = <?php echo $rowcounter; ?>;
- typesel_change();
+ //typesel_change();
//-->
</script>
diff --git a/usr/local/www/row_helper.js b/usr/local/www/row_helper.js
index 1be80e5..d24f0c3 100755
--- a/usr/local/www/row_helper.js
+++ b/usr/local/www/row_helper.js
@@ -34,7 +34,8 @@ var addRowTo = (function() {
}
td = d.createElement("td");
td.rowSpan = "1";
- td.innerHTML = '<input type="button" value="Delete" onclick="removeRow(this)">';
+
+ td.innerHTML = '<input type="image" src="/x.gif" onclick="removeRow(this); return false;" value="Delete">';
tr.appendChild(td);
tbody.appendChild(tr);
});
diff --git a/usr/local/www/row_helper_dynamic.js b/usr/local/www/row_helper_dynamic.js
index 64b34db..53ba2b5 100755
--- a/usr/local/www/row_helper_dynamic.js
+++ b/usr/local/www/row_helper_dynamic.js
@@ -38,7 +38,7 @@ var addRowTo = (function() {
}
td = d.createElement("td");
td.rowSpan = "1";
- td.innerHTML = '<input type="button" value="Delete" onclick="removeRow(this)">';
+ td.innerHTML = '<input type="image" src="/x.gif" onclick="removeRow(this); return false;" value="Delete">';
tr.appendChild(td);
tbody.appendChild(tr);
});
OpenPOWER on IntegriCloud