As Webform matures we're adding more and more specialized JavaScript and CSS. In the 2.x version we had a single webform.js and webform.css file. Each of these files were used exclusively on the admin-side of things when editing a webform node.

However some tasks are clearly going to require a front-end JS and CSS file. Since it doesn't make a lot of sense to load the admin CSS/JS when displaying the form, we should create dedicated front-end files and dedicated back-end files.

Examples of things that require front-end CSS/JS:
#71131: Add popup calendar to date component
#255356: Option for putting label and field on same line (inline)

So to get ready for fixing these issues, I'm moving the "webform.js" file to "js/webform-admin.js" and "webform.css" to "css/webform-admin.css". Eventually we'll create a new file at "js/webform.js" and "js/webform.css" for front-end display of forms. This patch changes a lot of lines (since CVS can't move files) but it doesn't make any changes outside of the moving.

Comments

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new22.59 KB

Committed these changes to both branches. Here's the Drupal 7 equivalent, also fixes a few calls to drupal_add_css() using the D6 function definition.

Status: Fixed » Closed (fixed)

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