feedback.admin.js 371 B

12345678910111213141516
  1. (function ($) {
  2. /**
  3. * Attach auto-submit to admin view form.
  4. */
  5. Drupal.behaviors.feedbackAdminForm = {
  6. attach: function (context) {
  7. $('#feedback-admin-view-form', context).once('feedback', function () {
  8. $(this).find('fieldset.feedback-messages :input[type="checkbox"]').click(function () {
  9. this.form.submit();
  10. });
  11. });
  12. }
  13. };
  14. })(jQuery);