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.3.6 app/views/page/_portlets.html.erb
enju_leaf-1.3.5 app/views/page/_portlets.html.erb
enju_leaf-1.3.4 app/views/page/_portlets.html.erb
enju_leaf-1.3.4.rc.2 app/views/page/_portlets.html.erb
enju_leaf-1.3.4.rc.1 app/views/page/_portlets.html.erb
enju_leaf-2.0.0.beta.2 app/views/page/_portlets.html.erb
enju_leaf-2.0.0.beta.1 app/views/page/_portlets.html.erb
enju_leaf-1.3.3.1 app/views/page/_portlets.html.erb
enju_leaf-1.3.3 app/views/page/_portlets.html.erb
enju_leaf-1.3.2 app/views/page/_portlets.html.erb
enju_leaf-1.3.1 app/views/page/_portlets.html.erb
enju_leaf-1.3.0 app/views/page/_portlets.html.erb
enju_leaf-1.3.0.rc.1 app/views/page/_portlets.html.erb
enju_leaf-1.3.0.beta.2 app/views/page/_portlets.html.erb
enju_leaf-1.2.2 app/views/page/_portlets.html.erb
enju_leaf-1.2.1 app/views/page/_portlets.html.erb
enju_leaf-1.2.0 app/views/page/_portlets.html.erb
enju_leaf-1.2.0.beta.4 app/views/page/_portlets.html.erb
enju_leaf-1.2.0.beta.3 app/views/page/_portlets.html.erb
enju_leaf-1.2.0.beta.2 app/views/page/_portlets.html.erb