Bug 31251: Use jQuery val() to clear_entry
1. Add some patron attributes that are textarea and some that have an AV category so they are select dropdowns 2. Go to the patron form and add some values to the patron attributes 3. Use the "Clear" button to try and clear the values, doesnt work. 4. Apply patch 5. Try clearing values from patron attributes that are both select dropdowns and textarea. The "Clear" button should work. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
7867106d43
commit
a3198f6474
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ function check_form_borrowers(nav){
|
|||
|
||||
function clear_entry(node) {
|
||||
var original = $(node).parent();
|
||||
$("textarea", original).attr('value', '');
|
||||
$("select", original).attr('value', '');
|
||||
$("textarea", original).val('');
|
||||
$("select", original).val('');
|
||||
}
|
||||
|
||||
function clone_entry(node) {
|
||||
|
|
Loading…
Reference in a new issue