{I" class:ETI"ProcessedAsset;FI"logical_path;TI"%admin/autopopulate-breadcrumb.js;FI" pathname;TI"/Users/sipple/.rvm/gems/ruby-2.1.5@trusty/gems/trusty-cms-2.0.10.pre.beta/app/assets/javascripts/admin/autopopulate-breadcrumb.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+6\UI" length;TiI" digest;TI"%4e16f021f000b33744f4bb0d69b86e81;FI" source;TI"(function(AutopopulateBreadcrumb, $) { AutopopulateBreadcrumb.oldTitle = ''; AutopopulateBreadcrumb.setup = function(input) { // Don't do this if slug and breadcrumb aren't on this page if ($('#page_slug').length > 0 && $('#page_breadcrumb').length > 0) { AutopopulateBreadcrumb.oldTitle = $(input).val(); $(input).on('keyup', function(event) { var title = $(this).val(); var $slug = $('#page_slug'); var $breadcrumb = $('#page_breadcrumb'); // If the slug is tracking with the title, keep tracking. if (toSlug(AutopopulateBreadcrumb.oldTitle) == $slug.val()) { $slug.val(toSlug(title)); } // If the breadcrumb is tracking with the title, keep tracking. if (AutopopulateBreadcrumb.oldTitle == $breadcrumb.val()) { $breadcrumb.val(title); } // The current title becomes the old title for next keyup. AutopopulateBreadcrumb.oldTitle = title; }); } } }(window.AutopopulateBreadcrumb = window.AutopopulateBreadcrumb || {}, jQuery)); $(function () { $('input#page_title').each(function(){ AutopopulateBreadcrumb.setup(this); }); }); ;TI"dependency_digest;TI"%13b86ff6a650a956ce864385736ad09f;FI"required_paths;T[I"/Users/sipple/.rvm/gems/ruby-2.1.5@trusty/gems/trusty-cms-2.0.10.pre.beta/app/assets/javascripts/admin/autopopulate-breadcrumb.js;FI"dependency_paths;T[{I" path;TI"/Users/sipple/.rvm/gems/ruby-2.1.5@trusty/gems/trusty-cms-2.0.10.pre.beta/app/assets/javascripts/admin/autopopulate-breadcrumb.js;FI" mtime;TI"2015-08-12T10:46:14-04:00;TI" digest;TI"%4e16f021f000b33744f4bb0d69b86e81;FI" _version;TI"%22a88f3752f21a842c87c2f56f39cceb;F