This follow-up consolidates the JavaScript for clearing the
contents of a row of patron attributes while expanding it
to include all inputs, selects, and textareas within that row.
Previously password-type fields would be excluded.
---
.../prog/en/modules/members/memberentrygen.tt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
index e160ea6..2a29fe3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -37,8 +37,7 @@
function clear_entry(node) {
var original = node.parentNode.parentNode;
- $("textarea", original).attr('value', '');
- $("select", original).attr('value', '');
+ $("input,select,textarea", original).attr('value', '');
}
function clone_entry(node) {
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/