Apply JavaScript rule to use the dot notation

We were using the dot notation in most places, but not everywhere.
This commit is contained in:
Javi Martín
2019-07-03 02:32:47 +02:00
parent 25bfd01e69
commit af6a494344
6 changed files with 14 additions and 13 deletions

View File

@@ -70,7 +70,7 @@
type: "renderLegislationAnnotation",
annotation_id: target.data("annotation-id"),
annotation_url: target.closest(".legislation-annotatable").data("legislation-annotatable-base-url"),
offset: target.offset()["top"]
offset: target.offset().top
});
parents_ids.each(function(i, pid) {
$.event.trigger({
@@ -149,7 +149,7 @@
type: "renderLegislationAnnotation",
annotation_id: ann_id,
annotation_url: el.closest(".legislation-annotatable").data("legislation-annotatable-base-url"),
offset: el.offset()["top"]
offset: el.offset().top
});
clearInterval(checkExist);
}
@@ -205,7 +205,7 @@
App.LegislationAnnotatable.app = new annotator.App().include(function() {
return {
beforeAnnotationCreated: function(ann) {
ann["legislation_draft_version_id"] = ann_id;
ann.legislation_draft_version_id = ann_id;
ann.permissions = ann.permissions || {};
ann.permissions.admin = [];
}