I have enabled garland as admin theme, and using a different theme for the site. When I install the jRating module the entire admin section is themed like the site, and the "admin theme" configuration is ignored.

The culprit seems to be line 38 of jrating.module:

drupal_add_js('function rating_postsubmit(nid){' . theme('jrating_postsubmit') . '}', 'inline');

Because commenting it out entirely seemed a bit drastic to me, I wrapped it like this:

if (arg(0) != "admin") {
  drupal_add_js('function rating_postsubmit(nid){' . theme('jrating_postsubmit') . '}', 'inline');
}

Works like a charm for me now, but probably the underlying issue should be fixed.

Comments

hickory’s picture

Status: Active » Closed (duplicate)

This was reported before as well: http://drupal.org/node/117562

It's odd - I wonder why this happens.