{I" class:ETI"ProcessedAsset;FI"logical_path;TI"fshop/login_modal.js;FI" pathname;TI"O/home/nofxx/projects/fshop/app/assets/javascripts/fshop/login_modal.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+þsRI" length;TiËI" digest;TI"%546a258b36ae0a56b998fb85492e832c;FI" source;TI"Ë(function() { var doc, fn; window.isLoggedIn = function() { return $('[data-logged]').data('logged'); }; doc = $(document); fn = function(e) { var $baseModal, $el, $iframe, iframe, tmpFnName; if ($('[data-logged]').data('logged')) { return; } e.preventDefault(); $el = $(this); tmpFnName = "_tmpLoggedInFn" + Math.round(Math.random() * 99999); $('body').modalmanager('loading'); $baseModal = $('').appendTo('body'); $iframe = $("").appendTo($baseModal); iframe = $iframe[0]; window[tmpFnName] = function(token, userData) { delete window[tmpFnName]; $('[data-logged]').data('logged', true); $('[name="csrf-token"]').attr('content', token); $('input[name=authenticity_token]').val(token); FShopUser.current().processData(userData); $el.trigger('logged-in'); return $el.trigger(e.type); }; $iframe.on('load', function() { $iframe.off('load'); if (iframe.contentWindow.loggedIn) { $('body').modalmanager('loading'); return window[tmpFnName](iframe.contentWindow.authToken, iframe.contentWindow.userData); } else { (function(oldFn) { return window[tmpFnName] = function() { $baseModal.modal('hide'); return oldFn.apply(null, arguments); }; })(window[tmpFnName]); $baseModal.removeClass('hide'); return $baseModal.modal({ modalOverflow: true }); } }); return $baseModal.on('hidden', function() { return setTimeout(function() { return $baseModal.remove(); }, 200); }); }; doc.on('submit', 'form.need-login', fn); doc.on('click', 'form.need-login input[type=submit]', fn); }).call(this); ;TI"dependency_digest;TI"%bb7a9ccdd3f80389a11fa2ca0948750f;FI"required_paths;T[I"S/home/nofxx/projects/fshop/vendor/assets/javascripts/bootstrap-modalmanager.js;FI"L/home/nofxx/projects/fshop/vendor/assets/javascripts/bootstrap-modal.js;FI"O/home/nofxx/projects/fshop/app/assets/javascripts/fshop/login_modal.coffee;FI"dependency_paths;T[{I" path;TI"O/home/nofxx/projects/fshop/app/assets/javascripts/fshop/login_modal.coffee;FI" mtime;TI"2013-10-31T23:21:02-02:00;TI" digest;TI"%a4279b48fe72c9e735ad2e1a0d43a75e;F{I" path;TI"S/home/nofxx/projects/fshop/vendor/assets/javascripts/bootstrap-modalmanager.js;FI" mtime;TI"2013-09-26T21:00:50-03:00;TI" digest;TI"%b50d99830afce30727426ffc8c4366b2;F{I" path;TI"L/home/nofxx/projects/fshop/vendor/assets/javascripts/bootstrap-modal.js;FI" mtime;TI"2013-09-26T21:00:50-03:00;TI" digest;TI"%21b3802da70d8c2ffdc49f467c7a7311;FI" _version;TI"%ac1cd7cf9811f9938e2b8937c60a24e6;F