From 430999ec4796a7ffd2ea1e6536fd0178111ffb32 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Mon, 15 Jan 2007 05:21:19 +0000
Subject: add loader image
---
.../protected/controls/Comments/CommentBlock.tpl | 23 +++++++++++++++++++--
.../protected/controls/Comments/ajax-loader.gif | Bin 0 -> 1849 bytes
2 files changed, 21 insertions(+), 2 deletions(-)
create mode 100644 demos/quickstart/protected/controls/Comments/ajax-loader.gif
(limited to 'demos/quickstart/protected/controls')
diff --git a/demos/quickstart/protected/controls/Comments/CommentBlock.tpl b/demos/quickstart/protected/controls/Comments/CommentBlock.tpl
index 08d7c87a..c9e7172b 100644
--- a/demos/quickstart/protected/controls/Comments/CommentBlock.tpl
+++ b/demos/quickstart/protected/controls/Comments/CommentBlock.tpl
@@ -24,7 +24,7 @@
-
(must have 5 or more posts in forum)
+
(must have 5 or more posts in forum)
-
+
+ style="border:0 none;display:none"/>
@@ -61,4 +64,20 @@
>
var hidden_block_id = '<%= $this->block_id->ClientID %>';
var content_textare_id = '<%= $this->content->ClientID %>';
+
+function show_posting_comment()
+{
+ var button = $('<%= $this->addComment->ClientID %>')
+ button.value="Posting ...";
+ button.disabled = true;
+ $('comment-loading').show();
+}
+
+function on_posting_success()
+{
+ var button = $('<%= $this->addComment->ClientID %>')
+ button.value="Add Comment";
+ button.disabled = false;
+ $('comment-loading').hide();
+}
diff --git a/demos/quickstart/protected/controls/Comments/ajax-loader.gif b/demos/quickstart/protected/controls/Comments/ajax-loader.gif
new file mode 100644
index 00000000..1c30a83b
Binary files /dev/null and b/demos/quickstart/protected/controls/Comments/ajax-loader.gif differ
--
cgit v1.2.3