vendredi 2 octobre 2015

Django jquery on apache

Has anyone come across with the jquery problem when running django on apache?

Specifically, the checkbox that selects and deselects all objects in admin page does not work properly (it works on django server). Here's the message from firebug:

Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery.min.js:1248:0 TypeError: $(...).attr(...).parent is not a function

contrib/admin/static/admin/js/actions.js

$(actionCheckboxes).prop("checked", checked)
            .parent().parent().toggleClass(options.selectedClass, checked);
    },




Aucun commentaire:

Enregistrer un commentaire