{I" class:ETI"ProcessedAsset;FI"logical_path;TI"spina/admin/aviary.js;FI" pathname;TI"O/Users/bram/apps/spina/app/assets/javascripts/spina/admin/aviary.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+x>UI" length;TiëI" digest;TI"%55dc5e048292156499136c95655273ff;FI" source;TI"ë(function() { var featherEditor, launchEditor; featherEditor = new Aviary.Feather({ apiKey: 'e7a5e1c28334eb7a', apiVersion: 3, theme: 'light', language: 'nl', minimumStyling: true, tools: 'crop,enhance,contrast,sharpness,text,whiten,effects,warmth,orientation,brightness,saturation,redeye,blemish', appendTo: '', onSave: function(imageID, newURL) { var img; img = $('#' + imageID); img.attr('src', newURL); return $.post(img.attr('data-posturl'), { new_image: newURL }); }, onError: function(errorObj) { return alert(errorObj.message); } }); launchEditor = function(id, src) { featherEditor.launch({ image: id, url: src }); return false; }; $(document).on('click', '[data-aviary]', function(e) { var image; e.preventDefault(); image = $(this).parents('.item').find('img'); return launchEditor(image.attr('id'), image.attr('data-image')); }); }).call(this); ;TI"dependency_digest;TI"%c1c5853d82ebe969d41afc43844ac5c5;FI"required_paths;T[I"O/Users/bram/apps/spina/app/assets/javascripts/spina/admin/aviary.js.coffee;FI"dependency_paths;T[{I" path;TI"O/Users/bram/apps/spina/app/assets/javascripts/spina/admin/aviary.js.coffee;F@I"2015-04-02T15:04:56+02:00;T@I"%eff648c94f3d3be1b20c4cf003a1ccb8;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F