Bug 8683: ensure clear button clears all item fields on order form
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 13 Nov 2013 10:33:05 +0000 (11:33 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 10 Dec 2013 03:37:10 +0000 (03:37 +0000)
commitf3b28a5d8ad381bbe5b3edce994e0d45ee96f920
treeedd1ca243a627854fb1a02e6b34a2eb9f8c685cb
parent03f342aa67034a56876b9b45545c607b961587b7
Bug 8683: ensure clear button clears all item fields on order form

The clear js function parses input text, but input filled to a plugin
does not contain the type attribute.

Test plan:
- fill the barcode field to the barcode plugin
- go on the new order page
- verify the barcode plugin works as before
- verify the clear link clears the barcode field and all others fields.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as expected, passes all tests and QA script.
Template change only.
Barcode and date acquired are now also cleared with the
'clear' link.

But: it only works when you enter a barcode manually currently,
because the AutoBarcode functionality is broken on master (bug 11273).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Items.pm