{:uriI"Äfile:///Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/modals.coffee?type=application/javascript&pipeline=self&id=f60043338c2d32a69559555a457de504e8cd957aed947dd8db7a4cddcf566e73:ET:load_pathI">/Users/benoit/www/agilidee/dorsale/app/assets/javascripts;T: filenameI"T/Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/modals.coffee;T: nameI"dorsale/modals;T:logical_pathI"dorsale/modals.self.js;T:content_typeI"application/javascript;T: sourceI"á(function() { window.modal = { open: function(content) { var modal_html; this.close(); $("body").addClass("modal-open"); modal_html = $(""); modal_html.find(".modal-overlay, .modal-close").click(function() { return modal.close(); }); $("body").append(modal_html); this.setup(modal_html); return $(document).trigger("page:load"); }, close: function() { $(".modal").remove(); return $("body").removeClass("modal-open"); }, setup: function(scope) { scope = $(scope || document); return scope.find("a[data-modal=1], .modal-body a:not([data-modal=0])").click(function() { modal.open("Chargement..."); $.ajax({ url: this.href, dataType: "html", success: function(data) { return modal.open(data); }, error: function() { return modal.open("Erreur"); } }); return false; }); } }; $(document).on("ready page:load", function() { return modal.setup(); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"bfile-digest:///Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/modals.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%ÖBvºÝxà@`j0ê¼æk„zE®¡¥5c¥ÞŽYe': lengthiá:dependencies_digest"%ž˜Ë€CÊx: [%"ܤ¶Õ' f·g(Ž‘«JNå‚Ž¡:idI"Ef60043338c2d32a69559555a457de504e8cd957aed947dd8db7a4cddcf566e73;F: mtimel+IìV