[Koha-bugs] [Bug 6740] can add items at ordering but not remove items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 1 09:48:56 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6740

--- Comment #6 from Paul Poulain <paul.poulain at biblibre.com> 2011-11-01 08:48:56 UTC ---
I can't imagine a relation with MARC here. 

Here is the code :
            <a style="cursor: pointer; color: grey; font-size: 180%;"
onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">+</a>
            <a style="display:none; cursor: pointer; color: grey; font-size:
180%;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">-</a>

=> the - is not displayed by default (ie : when only 1 item ordered). It's
displayed when clicking +, by the cloneItemBlock sub (in js/additem.js) .
This sub contains :
    CloneButtonMinus.setAttribute('onclick',"deleteItemBlock('" + index +
random + "')");
    CloneButtonMinus.setAttribute('style',"display:inline");

without any specific condition.

an idea: is there a javascript error that appears when you click on the + ?
(ie: a JS error could stop the js engine, just after duplicating the item)

Other idea: could it be a css problem (ie: do you have a css for staff ?)

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list