o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1416672642.2213829: @value"{I" class:ETI"ProcessedAsset;FI"logical_path;TI")locomotive/views/application_view.js;FI" pathname;TI"”/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/application_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-11-22T16:47:36+01:00;TI" length;TiI" digest;TI"%c8c74ead3e8a6327d138837db0fa4b0e;FI" source;TI"(function() { var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; Locomotive.Views.ApplicationView = (function(_super) { __extends(ApplicationView, _super); function ApplicationView() { return ApplicationView.__super__.constructor.apply(this, arguments); } ApplicationView.prototype.el = 'body'; ApplicationView.prototype.render = function() { this.render_flash_messages(this.options.flash); this.add_submenu_behaviours(); this.center_ui_dialog(); this.enable_sites_picker(); this.enable_content_locale_picker(); this.set_locale_for_tinymce_widgets(); if (this.options.view != null) { this.view = new this.options.view(this.options.view_data || {}); this.view.render(); } return this; }; ApplicationView.prototype.render_flash_messages = function(messages) { return _.each(messages, function(couple) { return $.growl(couple[0], couple[1]); }); }; ApplicationView.prototype.center_ui_dialog = function() { return $(window).resize(function() { return $('.ui-dialog-content:visible').dialog('option', 'position', 'center'); }); }; ApplicationView.prototype.add_submenu_behaviours = function() { var css; $('#submenu ul li.hoverable').each(function() { var link, popup, timer; timer = null; link = $(this); (popup = link.find('.popup')).removeClass('popup').addClass('submenu-popup').bind('show', function() { return link.find('a').addClass('hover') & popup.css({ top: link.offset().top + link.height() - 2, left: link.offset().left - parseInt(popup.css('padding-left')) }).show(); }).bind('hide', function() { return link.find('a').removeClass('hover') & $(this).hide(); }).bind('mouseleave', function() { return popup.trigger('hide'); }).bind('mouseenter', function() { return clearTimeout(timer); }); $(document.body).append(popup); return link.hover(function() { return popup.trigger('show'); }, function() { return timer = window.setTimeout((function() { return popup.trigger('hide'); }), 30); }); }); css = $('#submenu > ul').attr('class'); if (css !== '') { return $("#submenu > ul > li." + css).addClass('on'); } }; ApplicationView.prototype.enable_sites_picker = function() { var left, link, picker; link = this.$('#sites-picker-link'); picker = this.$('#sites-picker'); if (picker.size() === 0) { return; } left = link.position().left + link.parent().position().left - (picker.width() - link.width()); picker.css('left', left); return link.bind('click', function(event) { event.stopPropagation() & event.preventDefault(); return picker.toggle(); }); }; ApplicationView.prototype.enable_content_locale_picker = function() { var link, picker; link = this.$('#content-locale-picker-link'); picker = this.$('#content-locale-picker'); if (picker.size() === 0) { return; } link.bind('click', function(event) { event.stopPropagation() & event.preventDefault(); return picker.toggle(); }); return picker.find('li').bind('click', function(event) { var locale; locale = $(this).data('locale'); return window.addParameterToURL('content_locale', locale); }); }; ApplicationView.prototype.set_locale_for_tinymce_widgets = function() { var tinymce_locale; tinymce_locale = window.locale.toLowerCase(); if (tinymce_locale === 'pt-br') { tinymce_locale = 'pt'; } window.Locomotive.tinyMCE.defaultSettings.language = tinymce_locale; window.Locomotive.tinyMCE.minimalSettings.language = tinymce_locale; return window.Locomotive.tinyMCE.popupSettings.language = tinymce_locale; }; ApplicationView.prototype.unique_dialog_zindex = function() { var _base; (_base = window.Locomotive).jQueryModals || (_base.jQueryModals = 0); return 300000 + window.Locomotive.jQueryModals++; }; return ApplicationView; })(Backbone.View); }).call(this); ;TI"dependency_digest;TI"%00dcefe27078dcc04b226f59a2435026;FI"required_paths;T[I"”/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/application_view.js.coffee;FI"dependency_paths;T[{I" path;TI"”/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/application_view.js.coffee;FI" mtime;TI"2014-11-22T16:47:36+01:00;TI" digest;TI"%359802f0578cdf0b9ef27911346cadfa;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F