Download & Extend

Drupal.ajaxSubmit.success references depricated @attribute selector

Project:Ajax submit
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Currerntly, ajaxsubmit.js contains the following:

Drupal.ajaxSubmit.success = function (target, data, form) {
  $('form input.throbbing').removeClass('throbbing');
  $(target).html(data.message);
  if (data.errors) {
    for (var name in data.errors) {
      $('[@name=' + name + ']', form).addClass('error');
    }
  }

However, the @attribute selector is depricated in jquery 1.2.6, which is the default for drupal 6.0. We should nix the atsign, changing that to be:

      $('[@name=' + name + ']', form).addClass('error');

Comments

#1

The proposed JavaScript code seems equal to the code already used by the module. What was the proposed code supposed to be?