{I" class:ETI"ProcessedAsset;FI"logical_path;TI"alchemy/alchemy.sitemap.js;FI" pathname;TI"z/Users/tvd/.rvm/gems/ruby-2.1.5/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+š’TI" length;TiÉI" digest;TI"%5edb52d065bf4066e1037e2e5e4b4dad;FI" source;TI"É(function() { if (typeof window.Alchemy === 'undefined') { window.Alchemy = {}; } Alchemy.Sitemap = { init: function() { this.search_field = $("#search_field"); this.filter_field_clear = $('.js_filter_field_clear'); this.display = $('#page_filter_result'); this.items = $(".sitemap_page", '#sitemap'); return this._observe(); }, filter: function(term) { var length, results, self; results = []; self = Alchemy.Sitemap; self.items.map(function() { var item; item = $(this); if (term !== '' && item.attr('name').toLowerCase().indexOf(term) !== -1) { item.addClass('highlight'); item.removeClass('no-match'); return results.push(item); } else { item.addClass('no-match'); return item.removeClass('highlight'); } }); self.filter_field_clear.show(); length = results.length; if (length === 1) { self.display.show().text("1 " + (Alchemy._t('page_found'))); return $.scrollTo(results[0], { duration: 400, offset: -80 }); } else if (length > 1) { return self.display.show().text("" + length + " " + (Alchemy._t('pages_found'))); } else { self.items.removeClass('no-match highlight'); self.display.hide(); $.scrollTo('0', 400); return self.filter_field_clear.hide(); } }, _observe: function() { var filter; filter = this.filter; this.search_field.on('keyup', function() { var term; term = $(this).val(); return filter(term.toLowerCase()); }); this.search_field.on('focus', function() { return key.setScope('search'); }); return this.filter_field_clear.click((function(_this) { return function() { _this.search_field.val(''); return filter(''); }; })(this)); } }; }).call(this); ;TI"dependency_digest;TI"%e0385ad4f0934034225c7a97185f1db3;FI"required_paths;T[I"z/Users/tvd/.rvm/gems/ruby-2.1.5/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee;FI"dependency_paths;T[{I" path;TI"z/Users/tvd/.rvm/gems/ruby-2.1.5/gems/alchemy_cms-3.1.0.beta2/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee;FI" mtime;TI"2014-12-17T23:15:54+01:00;TI" digest;TI"%824ee79973453ffe30b42559321a006f;FI" _version;TI"%e4fae582d35919173aa703e1ae9b242e;F