Download & Extend

Javascript error when editing views or panels

Project:Image Assist
Version:6.x-2.0-alpha3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Maybe this is a views module issue, but anyway -

If I edit a View, and edit it's page header, or page footer (these fields are textareas) when image assist and FCKEditor are enabled - I get a javascript error "Drupal.settings.img_assist is not defined" in firebug.
I seems that it is somehow connected with that Views module uses ajax to display those fields. And some settings are not loaded.

views version is 6.x-2.3

Comments

#1

I found the same problem. Also, if I enable localization client (l10n_client) module, also trigger the above error. It seems that img_assist want to add a link to every large text input area but img_assist module was not loaded.

#2

Status:active» needs review

I had this error when editing Panels pages. To fix it, you simply need to define what textareas you want image assist to show up for. I went to admin/settings/img_assist, selected the radio button for image assist to "Show on only the listed textareas", clicked Submit, and the problem was resolved. I only wanted image assist to show up on the default textareas, edit-body and edit-comment.

#3

Status:needs review» active

#4

Thanks. May be the module should make this as a default. :-) Just a suggestion.

#5

Title:Javascript error when editing view» Javascript error when editing views or panels

This problem also affects text areas on pop-ups in the panels module.

On those pop-ups this error then means that collapsible fieldsets don't work and when you submit the pop-up you get an error.

#6

#7

@naught101

It depends if you were getting the "Drupal.settings.img_assist is not defined" js error.

It does look very similar.

I tried the fix on #445594: Image Assist and Panels #2 though and it doesn't seem to fix the problem.

#8

#9

I'm using img_assist 6.2 and I'm getting the same error, on the textareas of views. It was ok with 6.1.

For me, I just excluded the fields from img_assist (edit-header, edit-footer AND edit-empty, in my case). While the bug is not fixed yet, the error stopped at views.

#10

There is a similar problem with Image assist and Panels 3. I have posted more detail here => http://drupal.org/node/332039#comment-1860418

Error: Drupal.settings.img_assist is undefined
Source File: oursite.org/sites/all/modules/img_assist/img_assist.js?4
Line: 15

Disabling image assist makes error go away.

#11

Status:active» closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #445594: Image Assist and Panels. Please search for existing issues before submitting a new one.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.

nobody click here