Sha256: 0a698420cbfae45fb76f5d8947590febe9976160c58ab1646fbcf8a2bd78fa74
Contents?: true
Size: 881 Bytes
Versions: 50
Compression:
Stored size: 881 Bytes
Contents
<!-- The following code was originally written by Ralph Bean. Thanks Ralph! http://groups.google.com/group/jquery-ui/msg/f11601f56737a129 --> <script type="text/javascript"> $(document).ready( function () { <% if user_signed_in? %> restoreOrder(); <% end %> $(".portlet-header .ui-icon").click(function() { $(this).toggleClass("ui-icon-minus"); $(this).toggleClass("ui-icon-plus"); $(this).parents(".portlet:first").find(".portlet-content").toggle(); <% if user_signed_in? %> <% date = 1.week.from_now %> saveOrder(<%= date.year %>, <%= date.month %>, <%= date.day %>, "<%= root_path %>"); // This is important <% end %> }); $(".portlet-header .ui-icon").hover( function() {$(this).addClass("ui-icon-hover"); }, function() {$(this).removeClass('ui-icon-hover'); } ); }); </script>
Version data entries
50 entries across 50 versions & 1 rubygems