Can someone tell me why this works in Koha 3.12: //hide buttons on patron record (3.12) $(document).ready(function(){ $("a#duplicate.btn.btn-small").hide(); $("a#addchild.btn.btn-small").hide(); }); But none of the below work in Koha 3.10.x? //hide buttons on patron record (3.10.x) $(document).ready(function(){ $("#duplicate-button").hide(); $("#addchild-button").hide(); }); //hide buttons on patron record (3.10.x) $(document).ready(function(){ $("a#duplicate-button").hide(); $("a#addchild-button").hide(); }); I'm trying to hide the add child and duplicate buttons on the patron page and can do it with no trouble in Koha 3.12+
Try: $(document).ready(function(){ $("#addchild,#duplicate").closest("li").hide(); }); -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
Awesome!! Thanks On Tue, Jul 23, 2013 at 7:32 PM, Owen Leonard <oleonard@myacpl.org> wrote:
Try:
$(document).ready(function(){ $("#addchild,#duplicate").closest("li").hide(); });
-- Owen
-- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (2)
-
Nicole Engard -
Owen Leonard