{:uriI"file:///Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/common/comments.coffee?type=application/javascript&pipeline=self&id=e427d664448dd1d7671a122469db874b16b34b0640fa347c67d899c049f3372b:ET:load_pathI">/Users/benoit/www/agilidee/dorsale/app/assets/javascripts;T: filenameI"]/Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/common/comments.coffee;T: nameI"dorsale/common/comments;T:logical_pathI"$dorsale/common/comments.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { window.dorsaleComments = { load: function() { return $("#dorsale-comments").map(function() { var container, url; container = $(this); url = this.dataset.url; return $.ajax({ url: url, success: function(data) { container.html(data); setupUploadInputs(container); dorsaleComments.setupCreateForm(); dorsaleComments.setupEditButtons(); return dorsaleComments.setupDeleteButtons(); } }); }); }, reload: function() { return dorsaleComments.load(); }, setupCreateForm: function() { return $("#new_comment").on("ajax:success", dorsaleComments.reload); }, setupEditForm: function() { return $("#edit_comment").on("ajax:success", dorsaleComments.reload); }, setupEditButtons: function() { return $("#dorsale-comments [href$=edit]").click(function() { var container, url; container = $(this).parents(".comment"); url = this.href; $.ajax({ url: url, success: function(data) { container.replaceWith(data); return dorsaleComments.setupEditForm(); } }); return false; }); }, setupDeleteButtons: function() { return $("#dorsale-comments [data-method=delete]").map(function() { return $(this).on("ajax:success", dorsaleComments.reload); }); } }; }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"kfile-digest:///Users/benoit/www/agilidee/dorsale/app/assets/javascripts/dorsale/common/comments.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%CSHo2Ac84gl1kE4%: lengthi:dependencies_digest"%~kxr,ߋĢzFj6CLY>:idI"Ee427d664448dd1d7671a122469db874b16b34b0640fa347c67d899c049f3372b;F: mtimel+RzW