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

Version Path
enju_leaf-1.1.0.rc8 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc7 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc6 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc5 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc4 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc3 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc2 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc1 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.beta3 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.pre3 app/views/page/_portlets.html.erb