spec/dummy/tmp/cache/assets/test/sprockets/b07485824a6f29b235b19cafd71864f1 in commenteux-1.1.4 vs spec/dummy/tmp/cache/assets/test/sprockets/b07485824a6f29b235b19cafd71864f1 in commenteux-1.1.5
- old
+ new
@@ -1,82 +1,87 @@
{I"
class:ETI"ProcessedAsset; FI"logical_path; TI"commenteux/application.js; FI"
pathname; TI"v/Users/nickdemers/Documents/Projects/workspace/commenteux/app/assets/javascripts/commenteux/application.js.coffee; FI"content_type; TI"application/javascript; TI"
-mtime; Tl+lm€UI"length; Ti’I"digest; TI"%923b4793cecae0da83ec19126084a052; FI"source; TI"’(function() {
- $(function() {
- $(document).delegate('#new_notes_link', 'click', function(e) {
- var id, parent, resource, roles;
- e.stopPropagation();
- e.preventDefault();
- parent = $(this).data('parent');
- resource = $(this).data('resource');
- id = $(this).data('id');
- roles = $(this).data('roles');
- $.ajax({
- url: "/commenteux/" + resource + "/" + id + "/new",
- type: "get",
- dataType: "html",
- data: {
- "parent_div": parent,
- "roles": roles
- },
- success: function(returnData) {
- if (parent && parent !== 'null') {
- $("#" + parent).html(returnData);
- } else {
- $('body').html(returnData);
- }
- return this;
- },
- error: function(e) {
- alert(e);
- return this;
+mtime; Tl+¬q VI"length; TiÛI"digest; TI"%bc042f3f6266ec2484388b8da7692983; FI"source; TI"Û(function() {
+ $(document).on('click', '#new_notes_link', function(e) {
+ var display_list_notes, id, parent, resource, roles;
+ e.stopPropagation();
+ e.preventDefault();
+ parent = $(this).data('parent');
+ resource = $(this).data('resource');
+ id = $(this).data('id');
+ roles = $(this).data('roles');
+ display_list_notes = $(this).data('display-list-notes');
+ $.ajax({
+ url: "/commenteux/" + resource + "/" + id + "/new",
+ type: "get",
+ dataType: "html",
+ data: {
+ "parent_div": parent,
+ "roles": roles,
+ "display_list_notes": display_list_notes
+ },
+ success: function(returnData) {
+ if (parent && parent !== 'null') {
+ $("#" + parent).html(returnData);
+ } else {
+ $('body').html(returnData);
}
- });
- return this;
- });
- $(document).delegate('#new_comments', 'ajax:success', function(e, data, status, xhr) {
- var parent;
- e.stopPropagation();
- e.preventDefault();
- parent = $('#new_comments').attr('data-parent');
- if (parent && parent !== 'null') {
- return $('#' + parent).html(xhr.responseText);
- } else {
- return $('body').html(xhr.responseText);
+ return this;
+ },
+ error: function(e) {
+ alert(e);
+ return this;
}
});
- return $(document).delegate('#new_notes_cancelled', 'click', function(e) {
- var id, parent, resource, roles;
- e.stopPropagation();
- e.preventDefault();
- parent = $(this).data('parent');
- resource = $(this).data('resource');
- id = $(this).data('id');
- roles = $(this).data('roles');
- $.ajax({
- url: "/commenteux/" + resource + "/" + id + "?parent_div=" + parent,
- type: "get",
- dataType: "html",
- data: {
- "parent_div": parent,
- "roles": roles
- },
- success: function(returnData) {
- if (parent) {
- $("#" + parent).html(returnData);
- } else {
- $('body').html(returnData);
- }
- return this;
- },
- error: function(e) {
- alert(e);
- return this;
+ return this;
+ });
+
+ $(document).on('ajax:success', '#new_comments', function(e, data, status, xhr) {
+ var parent;
+ e.stopPropagation();
+ e.preventDefault();
+ parent = $('#new_comments').attr('data-parent');
+ if (parent && parent !== 'null') {
+ $("#" + parent).html(xhr.responseText);
+ } else {
+ $('body').html(xhr.responseText);
+ }
+ return this;
+ });
+
+ $(document).on('click', '#new_notes_cancelled', function(e) {
+ var display_list_notes, id, parent, resource, roles;
+ e.stopPropagation();
+ e.preventDefault();
+ parent = $(this).data('parent');
+ resource = $(this).data('resource');
+ id = $(this).data('id');
+ roles = $(this).data('roles');
+ display_list_notes = $(this).data('display-list-notes');
+ $.ajax({
+ url: "/commenteux/" + resource + "/" + id + "?parent_div=" + parent,
+ type: "get",
+ dataType: "html",
+ data: {
+ "parent_div": parent,
+ "roles": roles,
+ "display_list_notes": display_list_notes
+ },
+ success: function(returnData) {
+ if (parent) {
+ $("#" + parent).html(returnData);
+ } else {
+ $('body').html(returnData);
}
- });
- return this;
+ return this;
+ },
+ error: function(e) {
+ alert(e);
+ return this;
+ }
});
+ return this;
});
}).call(this);
-; TI"dependency_digest; TI"%e8119b4837d07e075f395da3c3f52f33; FI"required_paths; T[I"v/Users/nickdemers/Documents/Projects/workspace/commenteux/app/assets/javascripts/commenteux/application.js.coffee; FI"dependency_paths; T[{I" path; TI"v/Users/nickdemers/Documents/Projects/workspace/commenteux/app/assets/javascripts/commenteux/application.js.coffee; FI"
-mtime; TI"2015-06-16T14:39:40-04:00; TI"digest; TI"%0168b05896ecae032a6600357be3cc20; FI"
_version; TI"%cb2eec82c19168d2b32a76fa7e3957f4; F
+; TI"dependency_digest; TI"%c9e8dacad2aba5bc4c01b20ae54297e8; FI"required_paths; T[I"v/Users/nickdemers/Documents/Projects/workspace/commenteux/app/assets/javascripts/commenteux/application.js.coffee; FI"dependency_paths; T[{I" path; TI"v/Users/nickdemers/Documents/Projects/workspace/commenteux/app/assets/javascripts/commenteux/application.js.coffee; FI"
+mtime; TI"2015-09-28T12:58:20-04:00; TI"digest; TI"%03074b703aaad6d9dd9ea121899cc901; FI"
_version; TI"%cb2eec82c19168d2b32a76fa7e3957f4; F
\ No newline at end of file