{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+ï‰SI"length; TiI"digest; TI"%08958893d6026b45e2a67b5955591892; 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}); $('.contacts_admin').nestable({maxDepth: 1}); // Handle weighting the pages and their children. updateWeightsAndRelationships($('#nested-pages')); updateWeightsAndRelationships($('.contacts_admin')); $.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); }); SirTrevor.EventBus.on('block:create:new', addTitleToSirTrevorBlock); SirTrevor.EventBus.on('block:create:existing', addTitleToSirTrevorBlock); }); function addTitleToSirTrevorBlock(block){ block.$inner.append("