Sha256: 05da167460cedb2b556aa3c04ea8c530b1d478f6c8fead96826d690569ee37e0

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

$(function(){
  //Sortable Labels
  $('#labels').sortable({
    axis: 'y',
    start: function() {
      $('#labels .handle').bind('click',noEventPropagation);
    },
    stop:function() {
      $('#labels .handle').unbind('click', noEventPropagation);
    },
    update:function(){
    }
  });

  $(".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();
});

/*$.ajax({
	data:$(this).sortable('serialize') + '&_method=put',
	type:'post', url:'/users/1/tray'
})*/

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fassets_core-0.2.0 app/assets/javascripts/fassets_core/facets.js.erb