Sha256: 9af4ee1dceec18bb02e5907accdb346604df8328478e62d2b126e46a498286c5
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 Bytes
Contents
$(function(){ //Sortable Labels $('#labels').sortable({ axis: 'y', handle: ".handle", update: function(e, ui){ url = $("ol#labels").data('update_url') $.post(url, $(this).sortable('serialize')) } }); $(".collapsible").collapsiblePanel({ collapsedImage: "<%= image_path 'fassets_core/collapsed.png' %>", expandedImage: "<%= image_path 'fassets_core/collapse.png' %>", titleQuery: "h2.title", startCollapsed: true }); $(".label > input[type=checkbox]").live("click",function() { $(this).parents("form").submit(); }); // hide the submit button if JS is enabled (form can be submited by checking the boxes) $("form.edit_classification input[type=submit][value=Save]").hide(); $('.best_in_place').best_in_place(); }); /*$.ajax({ data:$(this).sortable('serialize') + '&_method=put', type:'post', url:'/users/1/tray' })*/
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fassets_core-0.3.1 | app/assets/javascripts/fassets_core/facets.js.erb |
fassets_core-0.3.0 | app/assets/javascripts/fassets_core/facets.js.erb |