Hide stats by default

This commit is contained in:
differentreality 2013-07-28 21:37:25 +03:00
parent f905bb8f8f
commit 3b201f951a

View file

@ -2,8 +2,8 @@
.span .span
.row .row
%h5{:style=>"text-align: right"} %h5{:style=>"text-align: right"}
= link_to "Events Stats", "#", :id => "events-stats1-link", :class => "btn btn-success" = link_to "Events Stats", "#", :id => "events-stats-link", :class => "btn btn-success"
#events-stats1 #events-stats
%table.table.table-bordered.table-striped %table.table.table-bordered.table-striped
%thead %thead
@ -186,7 +186,8 @@
} ); } );
$(document).ready( function() { $(document).ready( function() {
$("#events-stats1-link").click(function() { $("#events-stats").hide();
$("#events-stats1").toggle(); $("#events-stats-link").click(function() {
$("#events-stats").toggle();
}); });
}); });