What exactly do you want it to do? What I see there *should* throw up an
alert if the user has typed a space in the secret key field. I would
bind to the "submit" event on the form instead of "click" on the button,
and you probably want to return false or preventDefault() if you catch a
validation error.
As for jQuery referencing the "Add Item" or "Save Changes" button, you
should be able to add a script to that page either through the
'admin_items_form_tabs' filter or just through the 'admin_theme_header'
hook, then refer to the button by ID or name.
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To post to this group, send email to omek...@googlegroups.com.
To unsubscribe from this group, send email to omeka-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/omeka-dev?hl=en.