https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37755

--- Comment #3 from Jake Deery <[email protected]> ---
re: testing tools/batch_record_modification.pl and
tools/batch_delete_records.pl

These appear to work on the surface, but I don't think they are correct. If you
run this on tools/batch_record_modification.pl (when you're on the entry page,
via the browser console):

$("#record_ids_selection").each(function() {
    var tab = $(this).find('#batch_mod_form li.active:first a').attr('href');
    console.log(tab);
});

You get 'undefined'. I don't think that's good, obviously. :-) If you try again
with  the new JavaScript:

$("#record_ids_selection").each(function() {
    var tab = $(this).find('#batch_mod_form li a.active:first').attr('href');
    console.log(tab);
});

You should get the HREF of the active tab. Much more expected!

 * * * 

The same can be applied to tools/batch_delete_records.pl...

$("#record_ids_selection").each(function() {
    var tab = $(this).find('#batch_del_form:active:first a').attr('href');
    console.log(tab);
});

We actually hit an error. Meanwhile...

$("#record_ids_selection").each(function() {
    var tab = $(this).find('#batch_del_form li a.active:first').attr('href');
    console.log(tab);
});

Should give us that HREF again. Happy times!

 * * * 

Jake.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to