the js file is used only on the node edit page, it should not be added to every page..

Comments

zserno’s picture

Very good point, Pasqualle.
I can see two ways to fix it:

  1. Add a condition in domain_nodetype_init() where we check if current path is 'admin/content/node-type/*'.
  2. Calling drupal_add_js() from domain_nodetype_form_alter().

I personally would go for option #2. What is your opinion?

Pasqualle’s picture

option #2

zserno’s picture

Status: Active » Fixed

Comitted to HEAD.
Also created a dev release that will contain it. Should be visible on the project page in a couple of hours.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.