# JavaScript error in the admin interface

**URL:** <https://www.ruby-forum.com/t/javascript-error-in-the-admin-interface/82771>\
**Category:** Radiant CMS\
**Created:** [January 20, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/javascript-error-in-the-admin-interface/82771 "2007-01-20T18:17:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Craven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Adam\_Craven](https://www.ruby-forum.com/u/Adam_Craven)\
**Post date:** [January 20, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/javascript-error-in-the-admin-interface/82771/1 "2007-01-20T18:17:56Z")

</div>

Hello,

Got a slight problem. It doesn’t break Radiant but we’re trying to  
encourage  
the use of RadiantCMS for our clients and the error causes difficulties.

When I edit a page in the admin interface and click the javascript  
‘more’  
button to reach the slug/breadcrumb.

I’m hit, figuratively, with this:

URL bar reads: javascript:Element.toggle(‘extended-metadata’,  
‘more-extended-metadata’, ‘less-extended-metadata’)

Page opens up with this: [object HTMLDivElement].

If I click the back button, I return to the previous page and the slug  
is  
open. So I can still edit the slug.

Any ideas what’s going on?

Kind regards,

Adam Craven

---

<div class="post-metadata">

**Author:** ![Adam\_Craven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Adam\_Craven](https://www.ruby-forum.com/u/Adam_Craven)\
**Post date:** [January 20, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/javascript-error-in-the-admin-interface/82771/2 "2007-01-20T18:20:56Z")

</div>

This has been fixed in the mental branch. We could merge the change  
back to trunk if necessary, or you can use the mental branch.

Sean

---

<div class="post-metadata">

**Author:** ![Adam\_Craven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Adam\_Craven](https://www.ruby-forum.com/u/Adam_Craven)\
**Post date:** [January 20, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/javascript-error-in-the-admin-interface/82771/3 "2007-01-20T18:31:57Z")

</div>

Thanks Sean,

For clients it would be better to have the most stable version. If the  
merge  
back to trunk is a small and painless one, I’d appreciate that very  
much!

Adam

---

<div class="post-metadata">

**Author:** ![Adam\_Craven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Adam\_Craven](https://www.ruby-forum.com/u/Adam_Craven)\
**Post date:** [January 20, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/javascript-error-in-the-admin-interface/82771/4 "2007-01-20T19:40:08Z")

</div>

I do not remember the exact file, but the necessary change is as  
simple as making 'a href=“javascript:someFunction()…” into 'a  
href="#" onclick=“someFunction()”. There is a patch available on Trac  
if you look around.  
-jamie
