# Javascript on the admin page

**URL:** <https://www.ruby-forum.com/t/javascript-on-the-admin-page/126339>\
**Category:** Radiant CMS\
**Created:** [January 17, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/javascript-on-the-admin-page/126339 "2008-01-17T15:42:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olegshaldybin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/22d042/32.png) [@olegshaldybin](https://www.ruby-forum.com/u/olegshaldybin)\
**Post date:** [January 17, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/javascript-on-the-admin-page/126339/1 "2008-01-17T15:42:38Z")

</div>

Javascript on the admin page doesn’t work. ‘More’, ‘Filter’, ‘Available  
Tags’ don’t render required fields and pop windows. (Mozilla/5.0 (X11;  
U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070721 Firefox/2.0.0.2). In  
the error console I have got the message: ‘Element.toggle is not a  
function’ for …/admin/pages/edit/1. I have tried to do the same in  
konqueror and in IE (in WMWare). I get the same javascript behavior. Can  
somebody give me an advice what should I do?

---

<div class="post-metadata">

**Author:** ![olegshaldybin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/22d042/32.png) [@olegshaldybin](https://www.ruby-forum.com/u/olegshaldybin)\
**Post date:** [January 17, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/javascript-on-the-admin-page/126339/2 "2008-01-17T16:25:38Z")

</div>

Oleg Shelomov wrote:

> Javascript on the admin page doesn’t work. ‘More’, ‘Filter’, ‘Available  
> Tags’ don’t render required fields and pop windows. (Mozilla/5.0 (X11;  
> U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070721 Firefox/2.0.0.2). In  
> the error console I have got the message: ‘Element.toggle is not a  
> function’ for …/admin/pages/edit/1. I have tried to do the same in  
> konqueror and in IE (in WMWare). I get the same javascript behavior. Can  
> somebody give me an advice what should I do?

Oleg,

If this is an existing Radiant project, make sure to run rake  
radiant:update when you install a new gem. The Radiant admin JS has  
been refactored by Mislav in 0.6.4 to be compatible with Prototype 1.6.

Sean

---

<div class="post-metadata">

**Author:** ![olegshaldybin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/22d042/32.png) [@olegshaldybin](https://www.ruby-forum.com/u/olegshaldybin)\
**Post date:** [January 18, 2008, 10:29am UTC](https://www.ruby-forum.com/t/javascript-on-the-admin-page/126339/3 "2008-01-18T10:29:27Z")

</div>

Sean C. wrote:

> If this is an existing Radiant project, make sure to run rake  
> radiant:update when you install a new gem. The Radiant admin JS has  
> been refactored by Mislav in 0.6.4 to be compatible with Prototype 1.6.

I have updated gem from 0.9.2 to 1.0.1 by gem update --system.  
Next step I run rake radiant:update and get:  
install -c -m 0755  
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/tasks/…/generators/instance/templates/instance\_generate  
script/generate.  
The result is no change. There are no ‘More’, ‘Filter’, ‘Available  
Tags’ and adding new tabs. What is wrong in my actions?

---

<div class="post-metadata">

**Author:** ![olegshaldybin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/22d042/32.png) [@olegshaldybin](https://www.ruby-forum.com/u/olegshaldybin)\
**Post date:** [January 24, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/javascript-on-the-admin-page/126339/4 "2008-01-24T12:34:41Z")

</div>

I have reinstalled my web site, recreated databases and the new project  
works with javascript correctly. There are no questions.
