Currently the JavaScript runs immediately, so when the relevant portions are not loaded, the rule is not applied. It's much better to use Drupal.behavior to fix this, and this patch does that.

CommentFileSizeAuthor
sifr.patch575 bytesberenddeboer

Comments

sun’s picture

Did you test this in all browsers, especially IE6, IE7, and IE8 ? AFAIK, some browsers will completely break when Drupal.behaviors are used. See also the other issue about sIFR 3 in the queue.

sun’s picture

Status: Needs review » Closed (won't fix)

Since #120308: Add sIFR 3 plugin explicitly states that sIFR 3 fails when being used in Drupal.behaviors, I'm marking this won't fix.