Skip to content

Commit

Permalink
[#309 state:resolved] Added a little jQuery magic to have it call the…
Browse files Browse the repository at this point in the history
… click method of the Login & Sign-Up link using its title attribute.
  • Loading branch information
MikeThomsen authored and jayallen committed Apr 28, 2010
1 parent 625eaa2 commit ffafc06
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tmpl/cms/prefs/comments.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@
help_page="blog_settings_feedback"
help_section="accept_comments_from">
<input type="checkbox" name="allow_comments" value="1" id="allow_comments" onclick="toggleHidden('commenting-policy'); toggleHidden('commenting-display-options'); return true"<mt:if name="allow_comments"> checked="checked"</mt:if> class="cb" /> <label for="allow_comments"><__trans phrase="If enabled, comments will be accepted."></label>
<div><a href="<mt:var name="script_url">?__mode=cfg_registration&amp;blog_id=<mt:var name="blog_id" escape="url">"><__trans phrase="Setup Registration"></a></div>
<div><a href="<mt:Ignore><mt:var name="script_url">?__mode=cfg_blog_settings&amp;blog_id=<mt:var name="blog_id" escape="url"></mt:Ignore>javascript:void(0);" id="regLink"><__trans phrase="Setup Registration"></a></div>
</mtapp:setting>

<script type="text/javascript">
$(document).ready(function() {
$("#regLink").click(function() {
$('a[title=registration]').click();
});
});
</script>
</fieldset>

<fieldset id="commenting-policy"<mt:unless name="allow_comments"> class="hidden"</mt:unless>>
Expand Down

0 comments on commit ffafc06

Please sign in to comment.