add onchange event handling to toggleSubmitNotEmpty-enabled input boxes
This commit is contained in:
parent
2e93084687
commit
b5015f723f
|
@ -54,6 +54,7 @@
|
||||||
<input class=\"iedit\" onblur=\"javascript:enableHotkeys()\"
|
<input class=\"iedit\" onblur=\"javascript:enableHotkeys()\"
|
||||||
onkeypress=\"return filterCR(event, qafAdd)\"
|
onkeypress=\"return filterCR(event, qafAdd)\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
|
||||||
|
onchange=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
|
||||||
onfocus=\"javascript:disableHotkeys()\" name=\"feed_url\"></td></tr>";
|
onfocus=\"javascript:disableHotkeys()\" name=\"feed_url\"></td></tr>";
|
||||||
|
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
|
@ -92,6 +93,7 @@
|
||||||
|
|
||||||
print "<input name=\"query\" class=\"iedit\"
|
print "<input name=\"query\" class=\"iedit\"
|
||||||
onkeypress=\"return filterCR(event, search)\"
|
onkeypress=\"return filterCR(event, search)\"
|
||||||
|
onchange=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'search_submit_btn')\"
|
||||||
value=\"\">
|
value=\"\">
|
||||||
</td></tr>";
|
</td></tr>";
|
||||||
|
@ -166,8 +168,9 @@
|
||||||
|
|
||||||
print "<tr><td>Caption:</td>
|
print "<tr><td>Caption:</td>
|
||||||
<td><input onkeypress=\"return filterCR(event, addLabel)\"
|
<td><input onkeypress=\"return filterCR(event, addLabel)\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
name=\"description\" class=\"iedit\">";
|
onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
|
name=\"description\" class=\"iedit\">";
|
||||||
|
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
|
@ -228,7 +231,8 @@
|
||||||
|
|
||||||
print "<tr><td>Match:</td>
|
print "<tr><td>Match:</td>
|
||||||
<td><input onkeypress=\"return filterCR(event, qaddFilter)\"
|
<td><input onkeypress=\"return filterCR(event, qaddFilter)\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
|
onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
name=\"reg_exp\" class=\"iedit\">";
|
name=\"reg_exp\" class=\"iedit\">";
|
||||||
|
|
||||||
print "</td></tr><tr><td>On field:</td><td>";
|
print "</td></tr><tr><td>On field:</td><td>";
|
||||||
|
|
|
@ -591,6 +591,7 @@
|
||||||
<input id=\"fadd_cat\"
|
<input id=\"fadd_cat\"
|
||||||
onkeypress=\"return filterCR(event, addFeedCat)\"
|
onkeypress=\"return filterCR(event, addFeedCat)\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'catadd_submit_btn')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'catadd_submit_btn')\"
|
||||||
|
onchange=\"toggleSubmitNotEmpty(this, 'catadd_submit_btn')\"
|
||||||
size=\"40\">
|
size=\"40\">
|
||||||
<input
|
<input
|
||||||
type=\"submit\" class=\"button\" disabled=\"true\" id=\"catadd_submit_btn\"
|
type=\"submit\" class=\"button\" disabled=\"true\" id=\"catadd_submit_btn\"
|
||||||
|
@ -652,7 +653,8 @@
|
||||||
|
|
||||||
if (!$edit_cat_id || $action != "edit") {
|
if (!$edit_cat_id || $action != "edit") {
|
||||||
|
|
||||||
print "<td width='5%' align='center'><input onclick='toggleSelectPrefRow(this, \"fcat\");'
|
print "<td width='5%' align='center'><input
|
||||||
|
onclick='toggleSelectPrefRow(this, \"fcat\");'
|
||||||
type=\"checkbox\" id=\"FCCHK-".$line["id"]."\"></td>";
|
type=\"checkbox\" id=\"FCCHK-".$line["id"]."\"></td>";
|
||||||
|
|
||||||
print "<td><a href=\"javascript:editFeedCat($cat_id);\">" .
|
print "<td><a href=\"javascript:editFeedCat($cat_id);\">" .
|
||||||
|
@ -756,6 +758,7 @@
|
||||||
print "<div class=\"prefGenericAddBox\">
|
print "<div class=\"prefGenericAddBox\">
|
||||||
<input id=\"fadd_link\"
|
<input id=\"fadd_link\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
|
||||||
|
onchange=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
|
||||||
size=\"40\">
|
size=\"40\">
|
||||||
<input type=\"submit\" class=\"button\"
|
<input type=\"submit\" class=\"button\"
|
||||||
disabled=\"true\" id=\"fadd_submit_btn\"
|
disabled=\"true\" id=\"fadd_submit_btn\"
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
print "<tr><td>Match:</td>
|
print "<tr><td>Match:</td>
|
||||||
<td><input onkeypress=\"return filterCR(event, filterEditSave)\"
|
<td><input onkeypress=\"return filterCR(event, filterEditSave)\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
name=\"reg_exp\" class=\"iedit\" value=\"$reg_exp\">";
|
onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
|
name=\"reg_exp\" class=\"iedit\" value=\"$reg_exp\">";
|
||||||
|
|
||||||
print "</td></tr><tr><td>On field:</td><td>";
|
print "</td></tr><tr><td>On field:</td><td>";
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,8 @@
|
||||||
|
|
||||||
print "<tr><td>Caption:</td>
|
print "<tr><td>Caption:</td>
|
||||||
<td><input onkeypress=\"return filterCR(event, labelEditSave)\"
|
<td><input onkeypress=\"return filterCR(event, labelEditSave)\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
|
onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
|
||||||
name=\"description\" class=\"iedit\" value=\"$description\">";
|
name=\"description\" class=\"iedit\" value=\"$description\">";
|
||||||
|
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
|
@ -185,6 +185,7 @@
|
||||||
print "<div class=\"prefGenericAddBox\">
|
print "<div class=\"prefGenericAddBox\">
|
||||||
<input id=\"uadd_box\"
|
<input id=\"uadd_box\"
|
||||||
onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
|
onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
|
||||||
|
onchange=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
|
||||||
size=\"40\"> ";
|
size=\"40\"> ";
|
||||||
|
|
||||||
print "<input type=\"submit\" class=\"button\"
|
print "<input type=\"submit\" class=\"button\"
|
||||||
|
|
Loading…
Reference in New Issue