[Koha-bugs] [Bug 9529] New: Adding a patron shows javascript on screen under login section

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 1 12:16:35 CET 2013


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

            Bug ID: 9529
           Summary: Adding a patron shows javascript on screen under login
                    section
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: m.de.rooy at rijksmuseum.nl
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

Add patron shows under login section a html script tag in
memberentry_messaging_prefs:

/ *').change(function() { message_prefs_dirty = true; });
$('#categorycode').change(function() { var categorycode = $(this).val(); if
(message_prefs_dirty) { if (!confirm('Change messaging preferences to default
for this category?')) { return; } }
$.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' +
categorycode, function(data) { $.each(data.messaging_preferences, function(i,
item) { var attrid = item.message_attribute_id; var transports = ['email',
'rss', 'sms']; $.each(transports, function(j, transport) { if
(item['transport-' + transport] != ' ') { $('#' + transport +
attrid).attr('checked', item['transport-' + transport]); } else { $('#' +
transport + attrid).removeAttr('checked'); } }); if (item.digest && item.digest
!= ' ') { $('#digest' + attrid).attr('checked', item.digest); } else {
$('#digest' + attrid).removeAttr('checked'); } if (item.takes_days == '1') {
$('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance); } });
message_prefs_dirty = false; } ); }); }); //]]>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list