{I" class:ETI"BundledAsset;FI"logical_path;TI"commenteux/application.js;FI" pathname;TI"_/Users/seurdge/projects/commenteux/app/assets/javascripts/commenteux/application.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+HR,SI" length;TiJI" digest;TI"%bc0a50113d1fa381e5556d1207b87353;FI" source;TI"J(function() { $(function() { $(document).delegate('#new_notes_link', 'click', function(e) { var id, parent, resource; event.stopPropagation(); event.preventDefault(); parent = $(this).data('parent'); resource = $(this).data('resource'); id = $(this).data('id'); $.ajax({ url: "/commenteux/" + resource + "/" + id + "/new", type: "get", dataType: "html", data: { "parent_div": parent }, success: function(returnData) { if (parent) { $("#" + parent).html(returnData); } else { console.log('no parent'); $('body').html(returnData); } return this; }, error: function(e) { alert(e); return this; } }); return this; }); $(document).delegate('#new_comments', 'ajax:success', function(e, data, status, xhr) { var parent; event.stopPropagation(); event.preventDefault(); console.log('new_comments ajax success'); parent = $('#new_comments').attr('data-parent'); if (parent) { return $('#' + parent).html(xhr.responseText); } else { return $('body').html(xhr.responseText); } }); return $(document).delegate('#new_notes_cancelled', 'click', function(e) { var id, parent, resource; event.stopPropagation(); event.preventDefault(); parent = $(this).data('parent'); resource = $(this).data('resource'); id = $(this).data('id'); $.ajax({ url: "/commenteux/" + resource + "/" + id + "?parent_div=" + parent, type: "get", dataType: "html", data: { "parent_div": parent }, success: function(returnData) { if (parent) { $("#" + parent).html(returnData); } else { $('body').html(returnData); } return this; }, error: function(e) { alert(e); return this; } }); return this; }); }); }).call(this); ;TI"required_assets_digest;TI"%52b0bb8d86ef10ed8d6bf7f3500e28ab;FI" _version;TI"%9bd74cab6f8cd17bb7b52df6002861bd;F