And I'm not sure if this is a problem with bartik, core, or whatever. Anyway, I have a form with a collabsible fieldset. With D6, this all just worked. Using D7, when I load the form, I get a lot of "ReferenceError: Drupal not defined" in my javascript console. So I took a look at the generated HTML and I see:

<script type="text/javascript" src="http://localhost/~munroe/b7/misc/jquery.js?v=1.4.4"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/jquery.once.js?v=1.2"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/ui/jquery.ui.core.min.js?v=1.8.7"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/jquery.ba-bbq.js?v=1.2.1"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/modules/overlay/overlay-parent.js?v=1.0"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/modules/contextual/contextual.js?v=1.0"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/jquery.cookie.js?v=1.0"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/form.js?v=7.22"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/sites/all/modules/devel/devel_krumo_path.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/tableheader.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/sites/all/modules/esplanner_basic/js/ESPlannerBasic.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/sites/all/modules/esplanner_basic/js/clickCreatePlan.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/sites/all/modules/esplanner_basic/js/family.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/collapse.js?v=7.22"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/sites/all/libraries/jquery.plugins/jquery.ancestry.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/sites/all/libraries/jquery.plugins/jquery.toggleDisabled.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/sites/all/libraries/jquery.plugins/jquery.rloader1_1.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/misc/drupal.js?mkw7vw"></script>
<script type="text/javascript" src="http://localhost/~munroe/b7/modules/toolbar/toolbar.js?mkw7vw"></script>

And note, in particular, the drupal.js is loaded very late, in the process rather than what I would think would be right, very early in order to get the Drupal global javascript variable defined. I'm geting console errors for:

  • collapse.js
  • contextual.js
  • form.js
  • devel_krumo_path.js
  • tableheader.js
  • collapse.js

In any event, the default weight appears to break quite a bit of what should be default behavior and I'm completely puzzled as to why it should.

Comments

munroe_richard’s picture

Status: Active » Closed (works as designed)

Ignore this. There was a subtle bug in a remote place of the code that was altering the weight of drupal.js for some reason.