{I" class:ETI"BundledAsset; FI"logical_path; TI"$type_station/editables/image.js; FI" pathname; TI"j/Users/richardadams/github/type_station/app/assets/javascripts/type_station/editables/image.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+6 ÕTI"length; Ti I"digest; TI"%e95d9edc5bb23f63c9f09fc391f42770; FI"source; TI" (function() { var buildUploader, setUpDrops; buildUploader = function(element, data) { var $input, $label, $labelIcon, $labelText, elementId; elementId = $(element).attr('id'); $input = $(''); $label = $(''); $labelIcon = $('').addClass('ion-ios-upload ts-file-style-icon'); $labelText = $('').addClass('ts-file-style-text').text('Upload image'); $label.addClass('ts-file-style'); $input.attr({ type: "file", name: "file", "class": 'ts-editable-image-input', style: 'display: none', 'data-form-data': JSON.stringify(data), 'data-element-id': elementId }).cloudinary_fileupload().bind('cloudinaryprogress', function(e, data) { return $('.ts-progress-bar').css('width', Math.round((data.loaded * 100.0) / data.total) + '%'); }).bind('cloudinarystart', function(e, data) { $(this).prop('disabled', true); return $('body').append($('