Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: commits

[8509] Fix bug 1448.

 

 

Bricolage commits RSS feed   Index | Next | Previous | View Threaded


slanning at bricolage

Mar 16, 2009, 7:55 AM

Post #1 of 1 (601 views)
Permalink
[8509] Fix bug 1448.

Revision: 8509
Author: slanning
Date: 2009-03-16 07:55:19 -0700 (Mon, 16 Mar 2009)
ViewCVS: http://viewsvn.bricolage.cc/?rev=8509&view=rev

Log Message:
-----------
Fix bug 1448.
It's possible for id="element_8675309_hint" to not exist,
and that causes a JS error.

Bugzilla Links:
--------------
http://bugs.bricolage.cc/show_bug.cgi?id=1448

Modified Paths:
--------------
bricolage/trunk/comp/media/js/lib.js

Modified: bricolage/trunk/comp/media/js/lib.js
===================================================================
--- bricolage/trunk/comp/media/js/lib.js 2009-03-16 12:49:28 UTC (rev 8508)
+++ bricolage/trunk/comp/media/js/lib.js 2009-03-16 14:55:19 UTC (rev 8509)
@@ -1580,7 +1580,10 @@

toggle: function( eid, anchor ) {
Effect.toggle('element_' + eid, 'blind', {duration: 0.3});
- Effect.toggle('element_' + eid + '_hint', 'blind', {duration: 0.3});
+ var hint_element = $('element_' + eid + '_hint');
+ if (hint_element) {
+ Effect.toggle(hint_element, 'blind', {duration: 0.3});
+ }
var displayed = $('container_' + eid + '_displayed');
if ( displayed.value == '0' ) {
// Display it.

Bricolage commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.