{I" class:ETI"BundledAsset;FI"logical_path;TI"spina/uploads.js;FI" pathname;TI"S/Users/bram/apps/Spina-template/app/assets/javascripts/spina/uploads.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+ÏÔTI" length;TiEI" digest;TI"%a2cfa3d04c2a595143c382819245e835;FI" source;TI"E(function() { $.fn.uploadPhoto = function() { return $(this).fileupload({ dataType: "script", singleFileUploads: true, dropZone: $(this).find('.photo-field'), maxNumberOfFiles: 1, add: function(e, data) { var file, types; types = /(\.|\/)(gif|jpe?g|png)$/i; file = data.files[0]; if (types.test(file.type) || types.test(file.name)) { NProgress.start(); $(this).find('.customfile').addClass('loading'); return data.submit(); } else { return alert(file.name + " is geen gif-, jpeg- of png-bestand"); } }, progress: function(e, data) { if (data.context) { return NProgress.set(data.loaded / data.total); } }, done: function(e, data) { $(this).find('.customfile').removeClass('loading'); return NProgress.done(); } }); }; $.fn.uploadDocument = function() { return $(this).fileupload({ dataType: "script", singleFileUploads: true, dropZone: $(this).find('.attachment-field'), maxNumberOfFiles: 1, add: function(e, data) { var file, types; types = /(\.|\/)(pdf|docx?|rtf|txt)$/i; file = data.files[0]; if (types.test(file.type) || types.test(file.name)) { NProgress.start(); $(this).find('.customfile').addClass('loading'); return data.submit(); } else { return alert(file.name + " is geen pdf-, word-, txt- of rtf-bestand"); } }, progress: function(e, data) { if (data.context) { return NProgress.set(data.loaded / data.total); } }, done: function(e, data) { $(this).find('.customfile').removeClass('loading'); return NProgress.done(); } }); }; }).call(this); ;TI"required_assets_digest;TI"%e55342124d1ea4ba29b84f6f8e5ececd;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F