Moving the focus from the 'Save' button to the 'Save and add another' one

26 views
Skip to first unread message

vittorio

unread,
Mar 15, 2014, 3:40:01 PM3/15/14
to django...@googlegroups.com
My 1.6.2 django app deals  with a warehouse management using the admin interface exclusively.
 I've been asked to make it possible to use  barcode readers  for recording flows of items going either in or out of the warehouse (see the attached admin form using inlines),  Because our bar code readers use the standard RETURN (ascii 13) code to close the read string (and it's better not to modify this standard for other uses)  I would like to make the 'Save and add another' (In Italian 'Salva e aggiungi un altro') the default button triggered by the RETURN (ascii 13).
Could you please help me to do this taking into account that I'm a real newbie who needs kind of a tutorial step by step.
Thank you
Vittorio
Schermata 03-2456731 alle 10.46.08.png

Venkatraman S

unread,
Mar 19, 2014, 4:00:23 AM3/19/14
to django...@googlegroups.com
To get you started rather then spoonfeeding you : Have you looked at the code which generates this button? Can you think of possible javascript alterations that you can do to change the focus or order?

-V


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6da94d42-a40a-4791-a8fd-aec58e72b90c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages