{I" class:ETI"ProcessedAsset;FI"logical_path;TI"*simple_form_fileinput/enhancements.js;FI" pathname;TI"Œ/Users/smit1625/.rvm/gems/ruby-2.1.0/gems/simple_form_fileinput-0.0.6/vendor/assets/javascripts/simple_form_fileinput/enhancements.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+Ó UI" length;TiÀI" digest;TI"%59aaa5c223981317d33e2480b93bfb46;FI" source;TI"À(function() { $(function() { $.fn.draghover = function(options) { var defaults, settings; if (options == null) { options = {}; } defaults = { fireDragLeaveOnChild: true }; settings = $.extend(true, defaults, options); return this.each(function() { var collection, self; collection = $(); self = $(this); self.on('dragenter', function(e) { if (collection.length === 0) { self.trigger('draghoverstart'); } return collection = collection.add(e.target); }); self.on('dragleave', function(e) { console.log(e); console.log("" + e.originalEvent.pageX + ", " + e.originalEvent.pageY); if (!settings.fireDragLeaveOnChild && e.originalEvent.pageX !== 0) { e.preventDefault(); return false; } collection = collection.not(e.target); if (collection.length === 0) { return self.trigger("draghoverend"); } }); return self.on('drop', function(e) { collection = collection.not(e.target); if (collection.length === 0) { return self.trigger("draghoverend"); } }); }); }; return $(document).ready(function() { $(window).draghover({ fireDragLeaveOnChild: false }).on({ draghoverstart: function() { return $('.file-input-wrapper').addClass('file-in-window'); }, draghoverend: function() { return $('.file-input-wrapper').removeClass('file-in-window'); } }); return $('.file-input-wrapper input[type=file]').draghover().on({ draghoverstart: function() { return $(this).parent().addClass('file-hovering'); }, draghoverend: function() { return $(this).parent().removeClass('file-hovering'); } }); }); }); }).call(this); ;TI"dependency_digest;TI"%1aa4faaeee4d49171cadb9c3467dd958;FI"required_paths;T[I"Œ/Users/smit1625/.rvm/gems/ruby-2.1.0/gems/simple_form_fileinput-0.0.6/vendor/assets/javascripts/simple_form_fileinput/enhancements.js.coffee;FI"dependency_paths;T[{I" path;TI"Œ/Users/smit1625/.rvm/gems/ruby-2.1.0/gems/simple_form_fileinput-0.0.6/vendor/assets/javascripts/simple_form_fileinput/enhancements.js.coffee;FI" mtime;TI"2015-03-18T13:33:39-06:00;TI" digest;TI"%ddea535b6d27ae5b3e17849768122644;FI" _version;TI"%697552354d37314477726200c74a8578;F