spec/dummy/tmp/cache/assets/D35/B90/sprockets%2Fd68e86ba94b1c3b124acd81480643ca4 in locomotivecms-search-0.3.0 vs spec/dummy/tmp/cache/assets/D35/B90/sprockets%2Fd68e86ba94b1c3b124acd81480643ca4 in locomotivecms-search-0.3.2
- old
+ new
@@ -1,20 +1,19 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384093248.516264:@value"ð{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1397482266.313298:@value"‡{I"
class:ETI"ProcessedAsset; FI"logical_path; TI"0locomotive/views/theme_assets/_form_view.js; FI"
pathname; TI"{/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee; FI"content_type; TI"application/javascript; TI"
-mtime; TI"2013-06-27T10:27:25+02:00; TI"length; TiÝI"digest; TI"%95b8e88d20f5199230eab8cbeb451b82; FI"source; TI"Ý(function() {
- var _base, _ref,
+mtime; TI"2014-04-01T16:04:07+02:00; TI"length; TitI"digest; TI"%78eee566e1499a742a55da36f231f572; FI"source; TI"t(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).ThemeAssets || (_base.ThemeAssets = {});
Locomotive.Views.ThemeAssets.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 = {
@@ -40,50 +39,52 @@
this.enable_source_file();
return this;
};
FormView.prototype.enable_toggle_between_file_and_text = function() {
- var _this = this;
this.$('div.hidden').hide();
this.model.set({
performing_plain_text: this.$('#theme_asset_performing_plain_text').val()
});
- return this.$('.selector > a.alt').click(function(event) {
- event.stopPropagation() & event.preventDefault();
- if (_this.$('#file-selector').is(':hidden')) {
- return _this.$('#text-selector').slideUp('normal', function() {
- _this.$('#file-selector').slideDown();
- _this.model.set({
- performing_plain_text: false
+ return this.$('.selector > a.alt').click((function(_this) {
+ return function(event) {
+ event.stopPropagation() & event.preventDefault();
+ if (_this.$('#file-selector').is(':hidden')) {
+ return _this.$('#text-selector').slideUp('normal', function() {
+ _this.$('#file-selector').slideDown();
+ _this.model.set({
+ performing_plain_text: false
+ });
+ return _this.$('input#theme_asset_performing_plain_text').val(false);
});
- return _this.$('input#theme_asset_performing_plain_text').val(false);
- });
- } else {
- return _this.$('#file-selector').slideUp('normal', function() {
- _this.$('#text-selector').slideDown('normal', function() {
- return _this.editor.refresh();
+ } else {
+ return _this.$('#file-selector').slideUp('normal', function() {
+ _this.$('#text-selector').slideDown('normal', function() {
+ return _this.editor.refresh();
+ });
+ _this.model.set({
+ performing_plain_text: true
+ });
+ return _this.$('#theme_asset_performing_plain_text').val(true);
});
- _this.model.set({
- performing_plain_text: true
- });
- return _this.$('#theme_asset_performing_plain_text').val(true);
- });
- }
- });
+ }
+ };
+ })(this));
};
FormView.prototype.enable_source_file = function() {
- var _this = this;
- return this.$('.formtastic #theme_asset_source').bind('change', function(event) {
- var input;
- input = $(event.target)[0];
- if (input.files != null) {
- return _this.model.set({
- source: input.files[0]
- });
- }
- });
+ return this.$('.formtastic #theme_asset_source').bind('change', (function(_this) {
+ return function(event) {
+ var input;
+ input = $(event.target)[0];
+ if (input.files != null) {
+ return _this.model.set({
+ source: input.files[0]
+ });
+ }
+ };
+ })(this));
};
FormView.prototype.show_error = function(attribute, message, html) {
switch (attribute) {
case 'source':
@@ -113,12 +114,11 @@
return 'css';
}
};
FormView.prototype.enable_source_editing = function() {
- var input,
- _this = this;
+ var input;
input = this.$('#theme_asset_plain_text');
if (input.size() === 0) {
return;
}
this.editor = CodeMirror.fromTextArea(input.get()[0], {
@@ -127,22 +127,25 @@
lineNumbers: false,
passDelay: 50,
tabMode: 'shift',
theme: 'default'
});
- return this.editor.on('change', function(editor, change) {
- return _this.model.set({
- plain_text: editor.getValue()
- });
- });
+ return this.editor.on('change', (function(_this) {
+ return function(editor, change) {
+ return _this.model.set({
+ plain_text: editor.getValue()
+ });
+ };
+ })(this));
};
FormView.prototype.bind_source_mode = function() {
- var _this = this;
- return this.$('#theme_asset_plain_text_type').bind('change', function(event) {
- return _this.editor.setOption('mode', _this.source_mode());
- });
+ return this.$('#theme_asset_plain_text_type').bind('change', (function(_this) {
+ return function(event) {
+ return _this.editor.setOption('mode', _this.source_mode());
+ };
+ })(this));
};
FormView.prototype.after_inputs_fold = function() {
if (this.editor != null) {
return this.editor.refresh();
@@ -152,8 +155,8 @@
return FormView;
})(Locomotive.Views.Shared.FormView);
}).call(this);
-; TI"dependency_digest; TI"%94195810c4211c484983697249eedb86; FI"required_paths; T[I"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee; FI"{/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee; FI"dependency_paths; T[{I" path; TI"{/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee; FI"
-mtime; TI"2013-06-27T10:27:25+02:00; TI"digest; TI"%c48ea4cae1e30dd8ecebb4408453a421; 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
+; TI"dependency_digest; TI"%4154067472d8c3cde2751100191e7738; FI"required_paths; T[I"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee; FI"{/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee; FI"dependency_paths; T[{I" path; TI"{/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/theme_assets/_form_view.js.coffee; FI"
+mtime; TI"2014-04-01T16:04:07+02:00; TI"digest; TI"%c48ea4cae1e30dd8ecebb4408453a421; F{I" path; TI"t/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/form_view.js.coffee; FI"
+mtime; TI"2014-04-09T15:03:07+02:00; TI"digest; TI"%6b625a8f368e04b11585748da811b133; FI"
_version; TI"%ffd318ca8b794f42f5029101c2cf5d91; F
\ No newline at end of file