]> git.koha-community.org Git - koha.git/commit
Bug 18183: jQuery append error related to script tags in cloneItemBlock
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 28 Feb 2017 13:26:22 +0000 (14:26 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 22 Jan 2018 10:55:34 +0000 (11:55 +0100)
commita4d988ffad9cf527daa229497cafe2f425d30b17
treef5407030d7b7b47c4615b0f820c2c5bac8c5dac1
parenta4e5026036f63d207937ae0e787effe807f43703
Bug 18183: jQuery append error related to script tags in cloneItemBlock

See the detailed explanation of the error on Bugzilla.
As a workaround, we move the append of clone to outeritemblock before the
append of data (long string with item fields and script tags) to clone.

This patch also moves two vars inside the success function, since they are
not used outside of it.

Test plan:
[1] Set AcqCreateItem to receiving.
[2] Receive an order. Verify that adding, updating or deleting an item block
    still works as expected.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 8386f544b1bf68891b0ce2f68741e9d0115a0d49)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/additem.js