[Koha-patches] [PATCH 2/2] bug 5162: follow-up patch to not clear hidden input setting attribute type
Galen Charlton
gmcharlt at gmail.com
Fri Oct 29 13:40:37 CEST 2010
Otherwise, can't saved new attributes set from a cloned
input or select control.
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
.../prog/en/modules/members/memberentrygen.tmpl | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
index baba4c8..e147d53 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl
@@ -46,7 +46,8 @@
$("select", clone).attr('name', function() {
return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
});
- $("input,select", clone).attr('value','');
+ $("input#patron_attr_" + newId, clone).attr('value','');
+ $("select#patron_attr_" + newId, clone).attr('value','');
original.parentNode.insertBefore(clone, original.nextSibling);
}
--
1.7.0
More information about the Koha-patches
mailing list