spec/internal/tmp/cache/assets/test/sprockets/d2bcd182195dcc17cf37e34f033e7a9d in blacklight-spotlight-0.0.1 vs spec/internal/tmp/cache/assets/test/sprockets/d2bcd182195dcc17cf37e34f033e7a9d in blacklight-spotlight-0.0.2

- old
+ new

@@ -1,16 +1,26 @@ {I" class:ETI"ProcessedAsset;FI"logical_path;TI"spotlight/pages.js;FI" pathname;TI"V/Volumes/TempStorage/Projects/spotlight/app/assets/javascripts/spotlight/pages.js;FI"content_type;TI"application/javascript;TI" -mtime;Tl+g+óRI" length;TiŸI" digest;TI"%232f6701108b650b77562d8c5b68d57e;FI" source;TI"Ÿ// Place all the behaviors and hooks related to the matching controller here. +mtime;Tl+Ã5ýRI" length;TiÈI" digest;TI"%0dabe8302f8817a3b3eca2fe8d349574;FI" source;TI"È// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. Spotlight.onLoad(function() { // Initialize Nestable for nested pages $('#nested-pages.about_page_admin').nestable({maxDepth: 1}); $('#nested-pages.feature_page_admin').nestable({maxDepth: 2, expandBtnHTML: "", collapseBtnHTML: ""}); $('#nested-pages.search_admin').nestable({maxDepth: 1}); // Handle weighting the pages and their children. updateWeightsAndRelationships($('#nested-pages')); + + $.each($('.dd-handle'), function(k, el){ + var height; + if ($(el).next('.dd3-content').length > 0) { + height = $(el).next('.dd3-content').outerHeight(); + } else { + height = $(el).closest(".dd-item").outerHeight(); + } + $(el).css('height', height); + }); }); function updateWeightsAndRelationships(selector){ $.each(selector, function() { $(this).on('change',function(){ @@ -60,7 +70,7 @@ function find_property(node, property) { return node.find("input[data-property=" + property + "]"); } ; -;TI"dependency_digest;TI"%323f9b997dcd2225736ae03969fde5b7;FI"required_paths;T[I"V/Volumes/TempStorage/Projects/spotlight/app/assets/javascripts/spotlight/pages.js;FI"dependency_paths;T[{I" path;TI"V/Volumes/TempStorage/Projects/spotlight/app/assets/javascripts/spotlight/pages.js;FI" -mtime;TI"2014-02-05T22:27:51-08:00;TI" digest;TI"%2713531af926f97323bf3e1486c0a663;FI" _version;TI"%ad5851230fbdd4f8a862674697158df2;F +;TI"dependency_digest;TI"%b2ed843ff823a336942a9e38180b1cc9;FI"required_paths;T[I"V/Volumes/TempStorage/Projects/spotlight/app/assets/javascripts/spotlight/pages.js;FI"dependency_paths;T[{I" path;TI"V/Volumes/TempStorage/Projects/spotlight/app/assets/javascripts/spotlight/pages.js;FI" +mtime;TI"2014-02-13T13:14:43-08:00;TI" digest;TI"%0bde21831b5546d9852b774bc3f8f631;FI" _version;TI"%ad5851230fbdd4f8a862674697158df2;F \ No newline at end of file