Fix animation bug

master
Nick Sergeant 2011-11-10 16:51:19 -05:00
parent 91b6990dd8
commit 318c35c36b
2 changed files with 11 additions and 6 deletions

View File

@ -423,6 +423,9 @@ article.snipt {
font-weight: bold;
}
}
div.raw {
display: none;
}
}
section.emacs, section.default {
a.expand {
@ -554,11 +557,11 @@ article.snipt {
}
}
}
}
}
&.expanded {
li {
display: block;
&.expanded {
li {
display: block;
}
}
}
}
}

View File

@ -16,6 +16,7 @@
this.$copy_done = $('span.done', this.$copy_button);
this.$expand_button = $('a.expand', this.$aside);
this.$raw = $('div.raw', this.$container);
this.$tags = $('section.tags ul', this.$aside);
this.setupCopy();
},
@ -24,10 +25,11 @@
},
expand: function() {
this.$container.toggleClass('expanded', 100);
this.$aside.toggleClass('expanded');
this.$tags.toggleClass('expanded');
return false;
},
setupCopy: function() {
var copy_do = this.$copy_do;
var copy_done = this.$copy_done;