o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1388422058.1352599: @value"{I" class:EFI"ProcessedAsset;FI"logical_path;FI"wafflemix/admin/admin.js;FI" pathname;FI"Z/Users/jrissler/code/wafflemix/app/assets/javascripts/wafflemix/admin/admin.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-11-20T08:37:52-05:00;FI" length;Fií I" digest;F"%9dbd0facceda6662ca4e7d31038f606aI" source;FI"í (function() { $(document).ready(function() { $(".sortable").nestedSortable({ listType: "ul", handle: ".sort_handle", items: "li", toleranceElement: "> div", forcePlaceholderSize: true, placeholder: 'placeholder', update: function(event, ui) { var finalstring, mylist; mylist = $(".sortable").sortable('serialize'); mylist = mylist.replace(/root/g, ""); finalstring = ""; $(mylist.split("&")).each(function(index) { var fragments, id, parent_id, string2, string3, type; string2 = this.split("["); type = string2[0]; string3 = string2[1].split("]"); id = string3[0]; fragments = this.split("="); parent_id = fragments[1]; return finalstring = finalstring + type + "[" + index + "]" + "[id]=" + id + "&" + type + "[" + index + "][parent_id]=" + parent_id + "&" + type + "[" + index + "][position]=" + index + "&"; }); return $.post($(this).data('update-url'), finalstring); } }); $(".one_level_sortable").nestedSortable({ listType: "ul", handle: ".sort_handle", items: "li", toleranceElement: "> div", disableNesting: true, update: function(event, ui) { var finalstring, mylist; mylist = $(".one_level_sortable").sortable('serialize'); mylist = mylist.replace(/root/g, ""); finalstring = ""; $(mylist.split("&")).each(function(index) { var fragments, id, parent_id, string2, string3, type; string2 = this.split("["); type = string2[0]; string3 = string2[1].split("]"); id = string3[0]; fragments = this.split("="); parent_id = fragments[1]; return finalstring = finalstring + type + "[" + index + "]" + "[id]=" + id + "&" + type + "[" + index + "][parent_id]=" + parent_id + "&" + type + "[" + index + "][position]=" + index + "&"; }); return $.post($(this).data('update-url'), finalstring); } }); $(document).on("click", ".add_content_link", function(event) { if ($('.add_content_link').hasClass('disabled')) { return false; } else { $('.add_content_link').addClass('disabled'); $('#add_new').append('

Add Section
'); $('.add_content_link').tab('show'); return false; } }); $(document).on("click", "#submit_content_part", function(event) { $.ajax({ url: '/admin/content_sections.js', type: 'POST', data: { resource: $('.add_content_tab').data('resource'), resource_id: $('.add_content_tab').data('id'), name: $('.add_content_part_input input').val() } }); $('.add_content_part_input').remove(); return $('.add_content_link').removeClass('disabled'); }); $("#draggable li").draggable({ revert: true, cursor: "move" }); return $("#droppable").droppable({ drop: function(event, ui) { return $.ajax({ url: '/admin/assets/add_image.js', type: 'POST', data: { resource: $(ui.draggable).data('resource'), resource_id: $(ui.draggable).data('resource-id'), asset_id: $(ui.draggable).data('asset-id') } }); } }); }); }).call(this); ;TI"dependency_digest;F"%2d1eb23bd49486dd993bd674f57ca3e9I"required_paths;F[I"Z/Users/jrissler/code/wafflemix/app/assets/javascripts/wafflemix/admin/admin.js.coffee;FI"dependency_paths;F[{I" path;FI"Z/Users/jrissler/code/wafflemix/app/assets/javascripts/wafflemix/admin/admin.js.coffee;FI" mtime;FI"2013-11-20T08:37:52-05:00;FI" digest;F"%f3a9e047a0b9119ead88cc3a09e5f392I" _version;F"%6776f581a4329e299531e1d52aa59832