spec/dummy/tmp/cache/assets/CE0/F90/sprockets%2F2d10b8369c419d4f3f8607a453f54af1 in locomotivecms-search-0.2.8 vs spec/dummy/tmp/cache/assets/CE0/F90/sprockets%2F2d10b8369c419d4f3f8607a453f54af1 in locomotivecms-search-0.3.0
- old
+ new
@@ -1,20 +1,19 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384093246.301831:@value"º"{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1396022041.345702:@value"+${I"
class:ETI"ProcessedAsset; FI"logical_path; TI")locomotive/views/pages/_form_view.js; FI"
pathname; TI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee; FI"content_type; TI"application/javascript; TI"
-mtime; TI"2013-11-09T00:10:51+01:00; TI"length; TiÃI"digest; TI"%80c066ded7844f685a24b425a7a10eab; FI"source; TI"Ã(function() {
- var _base, _ref,
+mtime; TI"2013-12-06T11:59:02+01:00; TI"length; Ti4I"digest; TI"%191e1091403e215a1c1b1406e7b0e3f0; FI"source; TI"4(function() {
+ var _base,
__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; };
(_base = Locomotive.Views).Pages || (_base.Pages = {});
Locomotive.Views.Pages.FormView = (function(_super) {
__extends(FormView, _super);
function FormView() {
- _ref = FormView.__super__.constructor.apply(this, arguments);
- return _ref;
+ return FormView.__super__.constructor.apply(this, arguments);
}
FormView.prototype.el = '#content';
FormView.prototype.events = {
@@ -64,42 +63,44 @@
this.editor.replaceSelection(text);
return this.image_picker_view.close();
};
FormView.prototype.replace_template = function(event) {
- var link,
- _this = this;
+ var link;
event.stopPropagation() & event.preventDefault();
link = $(event.target).closest('a');
return $.rails.ajax({
url: link.attr('href'),
type: 'get',
dataType: 'json',
- success: function(data) {
- return _this.editor.setValue(data.raw_template);
- }
+ success: (function(_this) {
+ return function(data) {
+ return _this.editor.setValue(data.raw_template);
+ };
+ })(this)
});
};
FormView.prototype.enable_liquid_editing = function() {
- var input,
- _this = this;
+ var input;
input = this.$('#page_raw_template');
if (input.size() > 0) {
this.editor = CodeMirror.fromTextArea(input.get()[0], {
mode: 'liquid',
autoMatchParens: false,
lineNumbers: true,
passDelay: 50,
tabMode: 'shift',
theme: 'default'
});
- return this.editor.on('change', function(editor, change) {
- return _this.model.set({
- raw_template: editor.getValue()
- });
- });
+ return this.editor.on('change', (function(_this) {
+ return function(editor, change) {
+ return _this.model.set({
+ raw_template: editor.getValue()
+ });
+ };
+ })(this));
}
};
FormView.prototype.after_inputs_fold = function() {
return this.editor.refresh();
@@ -121,106 +122,114 @@
this.editable_elements_view.collection = this.model.get('editable_elements');
return this.editable_elements_view.refresh();
};
FormView.prototype.slugify_title = function() {
- var _this = this;
this.$('#page_title').slugify({
target: this.$('#page_slug'),
url: window.permalink_service_url
});
- return this.$('#page_slug').bind('change', (function(event) {
- return _this.touched_url = true;
- }));
+ return this.$('#page_slug').bind('change', ((function(_this) {
+ return function(event) {
+ return _this.touched_url = true;
+ };
+ })(this)));
};
FormView.prototype.listen_for_url_changes = function() {
- var _this = this;
- return setInterval((function() {
- if (_this.touched_url) {
- return _this.change_page_url() & (_this.touched_url = false);
- }
- }), 1200);
+ return setInterval(((function(_this) {
+ return function() {
+ if (_this.touched_url) {
+ return _this.change_page_url() & (_this.touched_url = false);
+ }
+ };
+ })(this)), 1200);
};
FormView.prototype.change_page_url = function() {
- var _this = this;
return $.rails.ajax({
url: this.$('#page_slug').data('url'),
type: 'get',
dataType: 'json',
data: {
parent_id: this.$('#page_parent_id').val(),
slug: this.$('#page_slug').val()
},
- success: function(data) {
- _this.$('#page_slug_input .inline-hints').html(data.url).effect('highlight');
- if (data.templatized_parent) {
- _this.$('li#page_slug_input').show();
- return _this.$('li#page_templatized_input, li#page_target_klass_name_input').hide();
- } else {
- if (!_this.model.get('redirect')) {
- return _this.$('li#page_templatized_input').show();
+ success: (function(_this) {
+ return function(data) {
+ _this.$('#page_slug_input .inline-hints').html(data.url).effect('highlight');
+ if (data.templatized_parent) {
+ _this.$('li#page_slug_input').show();
+ return _this.$('li#page_templatized_input, li#page_target_klass_name_input').hide();
+ } else {
+ if (!_this.model.get('redirect')) {
+ return _this.$('li#page_templatized_input').show();
+ }
}
- }
- }
+ };
+ })(this)
});
};
FormView.prototype.enable_response_type_select = function() {
- var _this = this;
- return this.$('li#page_response_type_input').change(function(event) {
- if ($(event.target).val() === 'text/html') {
- return _this.$('li#page_redirect_input, li#page_redirect_url_input, li#page_redirect_type_input').show();
- } else {
- _this.model.set({
- redirect: false
- });
- return _this.$('li#page_redirect_input, li#page_redirect_url_input, li#page_redirect_type_input').hide();
- }
- });
+ return this.$('li#page_response_type_input').change((function(_this) {
+ return function(event) {
+ if ($(event.target).val() === 'text/html') {
+ return _this.$('li#page_redirect_input, li#page_redirect_url_input, li#page_redirect_type_input').show();
+ } else {
+ _this.model.set({
+ redirect: false
+ });
+ return _this.$('li#page_redirect_input, li#page_redirect_url_input, li#page_redirect_type_input').hide();
+ }
+ };
+ })(this));
};
FormView.prototype.enable_templatized_checkbox = function() {
- var _this = this;
this._enable_checkbox('templatized', {
features: ['slug', 'redirect', 'listed'],
- on_callback: function() {
- return _this.$('li#page_target_klass_name_input').show();
- },
- off_callback: function() {
- return _this.$('li#page_target_klass_name_input').hide();
- }
+ on_callback: (function(_this) {
+ return function() {
+ return _this.$('li#page_target_klass_name_input').show();
+ };
+ })(this),
+ off_callback: (function(_this) {
+ return function() {
+ return _this.$('li#page_target_klass_name_input').hide();
+ };
+ })(this)
});
if (this.model.get('templatized_from_parent') === true) {
return this.$('li#page_templatized_input').hide();
}
};
FormView.prototype.enable_redirect_checkbox = function() {
- var _this = this;
return this._enable_checkbox('redirect', {
features: ['templatized', 'cache_strategy'],
- on_callback: function() {
- return _this.$('li#page_redirect_url_input, li#page_redirect_type_input').show();
- },
- off_callback: function() {
- return _this.$('li#page_redirect_url_input, li#page_redirect_type_input').hide();
- }
+ on_callback: (function(_this) {
+ return function() {
+ return _this.$('li#page_redirect_url_input, li#page_redirect_type_input').show();
+ };
+ })(this),
+ off_callback: (function(_this) {
+ return function() {
+ return _this.$('li#page_redirect_url_input, li#page_redirect_type_input').hide();
+ };
+ })(this)
});
};
FormView.prototype.enable_other_checkboxes = function() {
- var _this = this;
- return _.each(['published', 'listed'], function(exp) {
- return _this.$('li#page_' + exp + '_input input[type=checkbox]').checkToggle();
- });
+ this.$('li.toggle input[type=checkbox].simple-toggle').checkToggle();
+ return this.$('li.toggle.simple-toggle input[type=checkbox]').checkToggle();
};
return FormView;
})(Locomotive.Views.Shared.FormView);
}).call(this);
-; TI"dependency_digest; TI"%d6d010357a3c42af7f4d5071eb9802c2; FI"required_paths; T[I"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee; FI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee; FI"dependency_paths; T[{I" path; TI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee; FI"
-mtime; TI"2013-11-09T00:10:51+01:00; TI"digest; TI"%fab9ac0a35125bdcc220d99c0d1ae89f; F{I" path; TI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee; FI"
+; TI"dependency_digest; TI"%532f444a746a67d065765fc1590ce384; FI"required_paths; T[I"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee; FI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee; FI"dependency_paths; T[{I" path; TI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/pages/_form_view.js.coffee; FI"
+mtime; TI"2013-12-06T11:59:02+01:00; TI"digest; TI"%1ff1eb7d73ab5977f4270595b50a4a8a; F{I" path; TI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee; FI"
mtime; TI"2013-10-25T15:32:29+02:00; TI"digest; TI"%530d8faa1e59d267e84e809bd2f80524; FI"
_version; TI"%ffd318ca8b794f42f5029101c2cf5d91; F
\ No newline at end of file