I am using django-grappelli, so I asked this first in the related
django-grappelli-GG but obviously no one was able to help me. So I am
asking this here too, because the underyling m2m-horizontal-filter is
pretty identical in the standard admin-interface as I know now:
i am pretty new in jQuery and Javascript and I am stuck with the
horizontal-m2-form: When I add some
objects by clicking on "add" (css-class "selector-
add") I want to do stuff with some fields of the added model-
object, so I need to get the object-ids while adding the objects to
the list on the right without the need to save. But I don`t know how
to get those values. While testing some jQuery-stuff I got this
working:
$(".selector-add").live('click', function () {
alert("test");
But this didn't work:
$(".selector-add").live('change', function () {
alert("test");
Either way I don`t know how to get the values. IAnd I tried to study
the source-code of the selectfilter2.js and the SelectBox-method but I
didn`t get it.... If I dont`t use the horizontal-form the second
jQuery-example worked fine. But there will be many entries in that
list so the horizontal-form would be a real help.
any help is appreciated.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment