less and more text should toggle when editions info toggles

pull/1/head
Andromeda Yelton 2012-04-10 14:33:34 -04:00
parent 517c0259ac
commit 89d385d51f
1 changed files with 6 additions and 4 deletions

View File

@ -13,15 +13,17 @@
<script type="text/javascript" src="/static/js/tabs4.js"></script> <script type="text/javascript" src="/static/js/tabs4.js"></script>
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script> <script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<script type="text/javascript" src="/static/js/counter.js"></script> <script type="text/javascript" src="/static/js/counter.js"></script>
<script type="text/javascript" src="/static/js/embed.js"></script>
<script> <script>
var $j = jQuery.noConflict(); var $j = jQuery.noConflict();
$j(document).ready(function(){ $j(document).ready(function(){
$j('#embed').click(function(){
$j('div#widgetcode').toggle();
});
$j('.show_more_edition').click(function(){ $j('.show_more_edition').click(function(){
$j(this).html('less...'); if ($j(this).html() == 'less...') {
$j(this).html('more...')
} else {
$j(this).html('less...')
}
$j(this).next().toggle(); $j(this).next().toggle();
}); });
}); });