{:uriI"Ãfile:///workspace/app/assets/javascripts/type_station/editables/file_editor.js.coffee?type=application/javascript&pipeline=self&id=d1b7629d207c01a713abe9ce7fd06bac9630d478d8ba26f5e8ef658e100c5919:ET:load_pathI"&/workspace/app/assets/javascripts;T: filenameI"S/workspace/app/assets/javascripts/type_station/editables/file_editor.js.coffee;T: nameI"'type_station/editables/file_editor;T:logical_pathI"/type_station/editables/file_editor.self.js;T:content_typeI"application/javascript;T:sourceI"O(function() { var buildUploader; buildUploader = function(editor) { var $input, $label, $labelIcon; $input = $(''); $label = $(''); $labelIcon = $('').addClass("ts-file-style-icon " + (editor.data.type === 'image' ? 'ion-image' : 'ion-android-attach')); $label.addClass('ts-file-editor').addClass('ts-editable-button').addClass('ts-button'); $input.attr({ type: "file", name: "file", "class": 'ts-editable-file-input', style: 'display: none', 'data-form-data': JSON.stringify(editor.data.options.cloudinary), 'data-element-id': editor.$el.attr('id') }).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($('