summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorwei <>2007-03-30 05:12:40 +0000
committerwei <>2007-03-30 05:12:40 +0000
commit1563b4659c0cbfa0bde9325cc7e67e3f70f6deac (patch)
treeeb071fff14b3881f5d6eb482c9c6a43832d0e62f /demos
parent2f9eccec8b6858bd98d7c81317c677b9b5a2059e (diff)
fix #564, take 2
Diffstat (limited to 'demos')
-rw-r--r--demos/quickstart/protected/controls/Comments/comments.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/quickstart/protected/controls/Comments/comments.js b/demos/quickstart/protected/controls/Comments/comments.js
index 307a7ba2..75cbd482 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 && block.className.indexOf("block-content") < 0)
+ while(block && block.className.indexOf("block-content") < 0)
block = block.parentNode;
- if(block && block.className && block.className.indexOf("block-content") >= 0)
+ if(block && 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 && block.className.indexOf("block-hover") < 0)
+ while(block && block.className.indexOf("block-hover") < 0)
block = block.parentNode;
- if(block && block.className && block.className.indexOf("block-hover") >= 0)
+ if(block && block.className.indexOf("block-hover") >= 0)
{
block.removeClassName('block-hover');
var tag = $('tag-'+block.id);
@@ -173,7 +173,7 @@ function get_comment_count(id)
if(!Prado.Browser.ie) //not IE 4,5,6
{
- (function()
+ Event.OnLoad(function()
{
var userComments = $('user-comments');
userComments.style.position="absolute";
@@ -203,5 +203,5 @@ if(!Prado.Browser.ie) //not IE 4,5,6
Event.observe($('all-comments-link'), "click", function(e) { show_all_comments(); Event.stop(e); });
Event.observe($('close-comments'), "click", function(e) { hide_add_comment(); Event.stop(e); });
- })();
+ });
} \ No newline at end of file