spec/dummy/tmp/cache/assets/E8D/150/sprockets%2Fecfd622aff9fb5c912f518b4cd1ebbce in locomotivecms-search-0.2.8 vs spec/dummy/tmp/cache/assets/E8D/150/sprockets%2Fecfd622aff9fb5c912f518b4cd1ebbce in locomotivecms-search-0.3.0
- old
+ new
@@ -1,20 +1,19 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384093243.3861089:@value"={I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1396022040.225368:@value"Ö{I"
class:ETI"ProcessedAsset; FI"logical_path; TI"1locomotive/views/shared/asset_picker_view.js; FI"
pathname; TI"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee; FI"content_type; TI"application/javascript; TI"
-mtime; TI"2013-08-12T16:57:11+02:00; TI"length; TiI"digest; TI"%95cfa249acc8233e0e58e043641cd889; FI"source; TI"(function() {
- var _base, _ref,
+mtime; TI"2014-03-19T22:50:45+01:00; TI"length; TiI"digest; TI"%d77f4d37becbdfe66ec0abe0ad50d58d; FI"source; TI"(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).Shared || (_base.Shared = {});
Locomotive.Views.Shared.AssetPickerView = (function(_super) {
__extends(AssetPickerView, _super);
function AssetPickerView() {
- _ref = AssetPickerView.__super__.constructor.apply(this, arguments);
- return _ref;
+ return AssetPickerView.__super__.constructor.apply(this, arguments);
}
AssetPickerView.prototype.tag = 'div';
AssetPickerView.prototype.initialize = function() {
@@ -35,33 +34,44 @@
AssetPickerView.prototype.fetch_assets = function() {};
AssetPickerView.prototype.build_uploader = function(el, link) {};
AssetPickerView.prototype.create_dialog = function() {
- var _this = this;
return this.dialog || (this.dialog = $(this.el).dialog({
autoOpen: false,
modal: true,
zIndex: window.application_view.unique_dialog_zindex(),
- width: 650,
- create: function(event, ui) {
- var actions, input, link;
- $(_this.el).prev().find('.ui-dialog-title').html(_this.$('h2').html());
- _this.$('h2').remove();
- actions = _this.$('.dialog-actions').appendTo($(_this.el).parent()).addClass('ui-dialog-buttonpane ui-widget-content ui-helper-clearfix');
- actions.find('#close-link').click(function(event) {
- return _this.close(event);
- });
- input = actions.find('input[type=file]');
- link = actions.find('#upload-link');
- return _this.build_uploader(input, link);
- },
- open: function(event, ui, extra) {
- return $(_this.el).dialog('overlayEl').bind('click', function() {
- return _this.close();
- });
- }
+ dialogClass: this.dialog_class(),
+ width: 615,
+ minHeight: 520,
+ create: (function(_this) {
+ return function(event, ui) {
+ var actions, input, link;
+ $(_this.el).prev().find('.ui-dialog-title').html(_this.$('h2').html());
+ _this.$('h2').remove();
+ actions = _this.$('.dialog-actions').appendTo($(_this.el).parent()).addClass('ui-dialog-buttonpane ui-widget-content ui-helper-clearfix');
+ actions.find('#close-link').click(function(event) {
+ return _this.close(event);
+ });
+ input = actions.find('input[type=file]');
+ link = actions.find('#upload-link');
+ return _this.build_uploader(input, link);
+ };
+ })(this),
+ open: (function(_this) {
+ return function(event, ui, extra) {
+ $(_this.el).dialog('overlayEl').bind('click', function() {
+ return _this.close();
+ });
+ return $(document.body).addClass('stop-scrolling');
+ };
+ })(this),
+ close: (function(_this) {
+ return function(event, ui, extra) {
+ return $(document.body).removeClass('stop-scrolling');
+ };
+ })(this)
}));
};
AssetPickerView.prototype.open = function() {
return $(this.el).dialog('open');
@@ -84,31 +94,42 @@
AssetPickerView.prototype.center = function() {
return $(this.el).dialog('option', 'position', 'center');
};
AssetPickerView.prototype.add_assets = function(collection) {
- var _this = this;
- collection.each(function(asset) {
- return _this.add_asset(asset, true);
- });
+ collection.each((function(_this) {
+ return function(asset) {
+ return _this.add_asset(asset, true);
+ };
+ })(this));
return this._refresh();
};
AssetPickerView.prototype.add_asset = function(asset, first) {};
AssetPickerView.prototype.remove_asset = function(asset) {};
+ AssetPickerView.prototype.dialog_class = function() {
+ return 'asset-picker-dialog';
+ };
+
AssetPickerView.prototype._move_to_last_asset = function() {
var limit;
limit = this.$('ul.list li.clear').position();
if (limit != null) {
return this.$('ul.list').animate({
scrollTop: limit.top
}, 100);
}
};
+ AssetPickerView.prototype._move_to_top = function() {
+ return this.$('ul.list').animate({
+ scrollTop: 0
+ }, 100);
+ };
+
AssetPickerView.prototype._refresh = function() {
if (this.collection.length === 0) {
this.$('ul.list').hide() & this.$('p.no-items').show();
} else {
this.$('p.no-items').hide() & this.$('ul.list').show();
@@ -126,7 +147,7 @@
return AssetPickerView;
})(Backbone.View);
}).call(this);
-; TI"dependency_digest; TI"%63c1460d0dc67e4fa19e4179b4e9a89f; FI"required_paths; T[I"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee; FI"dependency_paths; T[{I" path; TI"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee; FI"
-mtime; TI"2013-08-12T16:57:11+02:00; TI"digest; TI"%fcd46d674e5401eae1d7f4538e3fbb37; FI"
_version; TI"%ffd318ca8b794f42f5029101c2cf5d91; F
+; TI"dependency_digest; TI"%348940fa54d75f3300c84cde753448e6; FI"required_paths; T[I"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee; FI"dependency_paths; T[{I" path; TI"|/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee; FI"
+mtime; TI"2014-03-19T22:50:45+01:00; TI"digest; TI"%27e3e984571c5c13f4806c59ed07ca5c; FI"
_version; TI"%ffd318ca8b794f42f5029101c2cf5d91; F
\ No newline at end of file