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.2.0.beta.1 app/views/page/_portlets.html.erb
enju_leaf-1.1.4 app/views/page/_portlets.html.erb
enju_leaf-1.1.3 app/views/page/_portlets.html.erb
enju_leaf-1.1.2 app/views/page/_portlets.html.erb
enju_leaf-1.1.1 app/views/page/_portlets.html.erb
enju_leaf-1.1.0 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc22 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc21 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc20 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc19 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc18 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc17 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc16 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc15 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc14 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc13 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc12 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc11 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc10 app/views/page/_portlets.html.erb
enju_leaf-1.1.0.rc9 app/views/page/_portlets.html.erb