I found a bug with cTool modal.

Uncaught TypeError: Cannot read property 'defaults' of undefined

The solution is to wrap nicemessages.js content with

(function($) { ... })(jQuery);

path attached

Comments

mradcliffe’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Status: Active » Needs work

The patch makes sense from a code perspective as that is the correct way to use Drupal Behaviors. However the patch needs to be re-rolled for cases where the patch can be applied with drush make.

diff --git a/public/sites/all/modules/nicemessages/js/nicemessages.js b/public/sites/all/modules/nicemessages/js/nicemessages.js

The patch should be made relative to the module name per Making a Drupal patch with Git.

tostinni’s picture

Status: Needs work » Needs review
StatusFileSize
new1.96 KB

Here is an updated version of the patch.

lamp5’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.9 KB

Hi. I have the same issue. I attach patch rerolled to the latest dev.