Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

why doesn't my admin log-in page collapse? OpenID/i-name not hidden


Go to End


6 Posts   2241 Views

Avatar
kudesign

Community Member, 64 Posts

6 December 2008 at 11:33pm

Edited: 06/12/2008 11:48pm

I don't know why my admin login page doesn't collapse anymore, the tabs:

* E-mail & Password
* OpenID/i-name

Normally OpenID/i-name is hidden upon load, but now it is shown, any idea how to fix this?

It works in IE, but not in Firefox, it used to work for both... not sure why it stopped for firefox.

Avatar
Willr

Forum Moderator, 5523 Posts

7 December 2008 at 12:14am

Have you got any Javascript errors? You can see this by using FireBug for firefox or check out the browser error console.

Avatar
kudesign

Community Member, 64 Posts

7 December 2008 at 1:25am

I checked my Firefox error console: and this is what it says. Does this mean that my slider.js is not working properly? and is conflicting with the tabsctrip.js?

Under Errors:

Error: s is null
Source File: http://www.kudesign.co.nz/studio/themes/BrightSide1/javascript/slider.js
Line: 6

and under warnings:

Warning: Error in parsing value for property 'filter'. Declaration dropped.
Source File: http://www.kudesign.co.nz/studio/
Line: 0

Please advise on this, I have looked everywhere to try to resolve this bug.

Avatar
Willr

Forum Moderator, 5523 Posts

7 December 2008 at 11:02am

the reason why its not hiding is because of that is null error. Its causing the javascript to stop processing.

This means a couple of things, Slider.js could be conflicting with the builtin JS libraries or there is a problem with slider.js :(

Avatar
kudesign

Community Member, 64 Posts

7 December 2008 at 2:13pm

Thanks Willr! Good to spot what caused it, when I removed the slider.js the problem was gone. Looks like I will need to find an alternative javascript slider.

How can I make this error in error console go away:
Warning: Error in parsing value for property 'filter'. Declaration dropped.
Source File: http://www.kudesign.co.nz/studio/
Line: 0

Avatar
kudesign

Community Member, 64 Posts

7 December 2008 at 5:53pm

Edited: 07/12/2008 10:00pm

I have found a solution to this problem.

If you put the javascript in Page.php or on the template page.ss, SS will load the script on every page everytime, even when you do not require it to be loaded for certain pages.

The solution is to modify cms/javascript/tinymce.template.js and a line in:

valid_elements : (near line 43)

to allow <script> in your TinyMCE HTML

For more detail please check out this link:
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements

This way, I can include the <script> to the HTML, to only the page I want.

I still do not understand this warning message in Firefox error console:
Warning: Error in parsing value for property 'filter'. Declaration dropped.
Source File: http://www.kudesign.co.nz/studio/
Line: 0

Any tip will be much appreciated!!