LP#1154656 MARC Expert Search "Add Rows" adds duplicate row
authorMichael Peters <mpeters@emeralddata.net>
Fri, 5 Dec 2014 16:34:21 +0000 (11:34 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 5 Jan 2015 20:24:38 +0000 (15:24 -0500)
commit255108be1428e0530ef1d1b437bed364bab93f4a
treea68081e9889c0f46d21b620c8e520df6d0335619
parentbf9d6c3d3eeeae27747a4e1e914b8ee248e9b0fa
LP#1154656 MARC Expert Search "Add Rows" adds duplicate row

This patch changes the behavior of the "Add Search Row" link
(JavaScript function from simple.js "addExpertRow()") so that
we are always cloning the initial "empty" row instead of
potentially cloning a row -- by way of cloneNode() -- with user
input in place, and causing duplicate search rows.

Signed-off-by: Michael Peters <mpeters@emeralddata.net>
Open-ILS/web/js/ui/default/opac/simple.js