Secondary tabs not visible

wmike - March 26, 2009 - 19:16
Project:IMCE
Version:6.x-1.2
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I know this has been highlighted - however, I cannot find a solution to this.

Bringing up the IMCE file browser window from fckeditor shows the editor without the upload, resize etc tabs visible. The code relating to these is as follows:

'

'

I have tried to override the class in style.css of the relevant theme - nothing - still not visible. All is needed is to change the colour, I guess - can't seem to do it however.

Any ideas, please?

Cheers!

Mike

#1

wmike - March 26, 2009 - 19:17

As you can see - they display here - surely a css issue?

#2

ufku - March 30, 2009 - 17:15

Yes. try to figure it out using firebug or developer tools for firefox.

#3

com2 - July 7, 2009 - 18:47

I have a similar problem related to themes. I discovered that with my custom theme only one tab is "printed" by Drupal (no CSS issue!) while core theme shows them all. See attached images for a comparison of the same tags. How can a theme influence this?

AttachmentSize
withCustomTheme.jpg 8.64 KB
withGarlandTheme.jpg 12.53 KB

#4

com2 - July 8, 2009 - 08:13

Apparently these tabs are added by Javascript. May be somebody of the developers can explain what could cause that only the first tab appears in a theme? We are talking about an Artisteer theme that has some JS of its own that could override or hinder IMCE's javascript.

#5

com2 - July 8, 2009 - 08:16

For your information I attach the theme's JS file.

AttachmentSize
script.js.txt 8.35 KB

#6

bradford777 - July 11, 2009 - 21:41

Artisteer changes the option from an 'input' to a 'button'. Under imce.js around line 257 it searches for the 'input', and doesn't find one.. since Artisteer changed it to a 'button'.

Adding a check to imce.js to check for 'button' if 'input' isn't found fixes the problem.

I did a check to find if it the sbmt variable has an 'id' attribute, and if not, look for a 'button'.

Maybe a cleaner/quicker way to fix. Suggestions welcomed.

To Fix:

Search imce.js for

var sbmt = $('input:submit', this);

And add the below code just below it...

if (!sbmt.attr('id')) {
sbmt = $('button:submit', this);
}

 
 

Drupal is a registered trademark of Dries Buytaert.