Skip to content

Commit

Permalink
handle accidental double-click correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 31, 2015
1 parent 9de58d1 commit 65538e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.76 2015-01-31
5.76 2015-02-01
- Increased default max_message_size from 10MB to 16MB in Mojo::Message.
- Reduced default max_line_size from 10KB to 8KB in Mojo::Headers and
Mojo::Message.
Expand Down
21 changes: 11 additions & 10 deletions lib/Mojolicious/templates/development.html.ep
Expand Up @@ -194,17 +194,18 @@
<div class="tap">tap for more</div>
<script>
var current = '#context';
$('#showcase').click(function () {
$(current).slideToggle('slow', function () {
if (current == '#context') {
current = '#insight';
}
else {
current = '#context';
}
$(current).slideToggle('slow');
function mojoShowcase () {
$('#showcase').click(function () {
$(this).unbind('click');
$(current).slideToggle('slow', function () {
current = current == '#context' ? '#insight' : '#context';
$(current).slideToggle('slow', function () {
mojoShowcase();
});
});
});
});
}
mojoShowcase();
$('#insight').toggle();
</script>
% }
Expand Down

0 comments on commit 65538e8

Please sign in to comment.