Dear All, While trying to remove some of the fields in member entry form through staff client-intranetuserjs as per the koha docs , it is not removing the fields. I think the java script is not included to the intranet forms. I have added this to intranetuserjs $(document).ready(function(){ alert("hi"); $("#entryform #btitle").parent().remove(); $("#entryform #initials").parent().remove(); $("#entryform #othernames").parent().remove(); $("#entryform #streetnumber").parent().remove(); $("#entryform #streettype").parent().remove(); }); Any help is apreciated regards Liny Varghese
Try replacing your first line with: $(function() { Cheers, Daniel Grobani System Administrator John A. Graziano Memorial Library Samuel Merritt University Dear All, While trying to remove some of the fields in member entry form through staff client-intranetuserjs as per the koha docs , it is not removing the fields. I think the java script is not included to the intranet forms. I have added this to intranetuserjs $(document).ready(function(){ alert("hi"); $("#entryform #btitle").parent().remove(); $("#entryform #initials").parent().remove(); $("#entryform #othernames").parent().remove(); $("#entryform #streetnumber").parent().remove(); $("#entryform #streettype").parent().remove(); }); Any help is apreciated regards Liny Varghese -- View this message in context: http://old.nabble.com/intranetuserjs-tp26722615p26734369.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Never mind, I think I'm barking up the wrong tree. I don't know much about JavaScript & jQuery, and my suggestion was based on comparing your internetjs code to ours. Now I don't think it will help you. Hopefully someone with more expertise will chime in. Owen? Cheers, Daniel Daniel Grobani wrote:
Try replacing your first line with:
$(function() {
Cheers,
Daniel Grobani System Administrator John A. Graziano Memorial Library Samuel Merritt University
Dear All,
While trying to remove some of the fields in member entry form through staff client-intranetuserjs as per the koha docs , it is not removing the fields. I think the java script is not included to the intranet forms.
I have added this to intranetuserjs
$(document).ready(function(){ alert("hi"); $("#entryform #btitle").parent().remove(); $("#entryform #initials").parent().remove(); $("#entryform #othernames").parent().remove(); $("#entryform #streetnumber").parent().remove(); $("#entryform #streettype").parent().remove();
});
Any help is apreciated
regards
Liny Varghese
-- View this message in context: http://old.nabble.com/intranetuserjs-tp26722615p26735649.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
$(function() {
$(document).ready(function(){
These two are functionally equivalent. The first is just a shortcut for the second.
$(document).ready(function(){ alert("hi"); $("#entryform #btitle").parent().remove(); $("#entryform #initials").parent().remove(); $("#entryform #othernames").parent().remove(); $("#entryform #streetnumber").parent().remove(); $("#entryform #streettype").parent().remove(); });
This works fine for me if I paste it into my intranetuserjs preference as-is. Do you have any other javascript customizations that might be interfering? -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (3)
-
Daniel Grobani -
liny@cusat.ac.in -
Owen Leonard