Commit 70126105 by Rocky Duan

change watch to follow in front end

parent 65ddf52d
...@@ -50,7 +50,7 @@ Discussion = ...@@ -50,7 +50,7 @@ Discussion =
<label for="discussion-post-anonymously-{{id}}">post anonymously</label> <label for="discussion-post-anonymously-{{id}}">post anonymously</label>
{{#showWatchCheckbox}} {{#showWatchCheckbox}}
<input type="checkbox" class="discussion-auto-watch" id="discussion-autowatch-{{id}}" checked /> <input type="checkbox" class="discussion-auto-watch" id="discussion-autowatch-{{id}}" checked />
<label for="discussion-auto-watch-{{id}}">watch this thread</label> <label for="discussion-auto-watch-{{id}}">follow this thread</label>
{{/showWatchCheckbox}} {{/showWatchCheckbox}}
<br /> <br />
<a class="discussion-submit-reply control-button" href="javascript:void(0)">Submit</a> <a class="discussion-submit-reply control-button" href="javascript:void(0)">Submit</a>
...@@ -204,10 +204,10 @@ Discussion = ...@@ -204,10 +204,10 @@ Discussion =
, 'json' , 'json'
if id in $$user_info.subscribed_thread_ids if id in $$user_info.subscribed_thread_ids
unwatchThread = generateDiscussionLink("discussion-unwatch-thread", "Unwatch", handleUnwatchThread) unwatchThread = generateDiscussionLink("discussion-unwatch-thread", "Unfollow", handleUnwatchThread)
$local(".info").append(unwatchThread) $local(".info").append(unwatchThread)
else else
watchThread = generateDiscussionLink("discussion-watch-thread", "Watch", handleWatchThread) watchThread = generateDiscussionLink("discussion-watch-thread", "Follow", handleWatchThread)
$local(".info").append(watchThread) $local(".info").append(watchThread)
$local = generateLocal(discussion) $local = generateLocal(discussion)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment