diff options
author | wei <> | 2007-03-30 05:08:09 +0000 |
---|---|---|
committer | wei <> | 2007-03-30 05:08:09 +0000 |
commit | 2f9eccec8b6858bd98d7c81317c677b9b5a2059e (patch) | |
tree | a3b741ce03b7fd2369c2b7aea27b01eafefd4ecf | |
parent | 4f968c045e0d09ab3e4f659743effb5305a963ce (diff) |
fix #564
-rw-r--r-- | demos/quickstart/protected/controls/Comments/comments.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/quickstart/protected/controls/Comments/comments.js b/demos/quickstart/protected/controls/Comments/comments.js index 46dd0a16..307a7ba2 100644 --- a/demos/quickstart/protected/controls/Comments/comments.js +++ b/demos/quickstart/protected/controls/Comments/comments.js @@ -95,9 +95,9 @@ function show_comments(block) function show_block(block)
{
- while(block && block.className.indexOf("block-content") < 0)
+ while(block && block.className && block.className.indexOf("block-content") < 0)
block = block.parentNode;
- if(block && block.className.indexOf("block-content") >= 0)
+ if(block && block.className && block.className.indexOf("block-content") >= 0)
{
block.addClassName('block-hover');
var tag = $('tag-'+block.id);
@@ -108,9 +108,9 @@ function show_block(block) function hide_block(block)
{
- while(block && block.className.indexOf("block-hover") < 0)
+ while(block && block.className && block.className.indexOf("block-hover") < 0)
block = block.parentNode;
- if(block && block.className.indexOf("block-hover") >= 0)
+ if(block && block.className && block.className.indexOf("block-hover") >= 0)
{
block.removeClassName('block-hover');
var tag = $('tag-'+block.id);
|