Browse Source

Fix `delete` of `annotations`

pull/94/head
alexdbondoc17 4 years ago
parent
commit
3535030ed8
  1. 2
      app/javascript/controllers/annotations_controller.js

2
app/javascript/controllers/annotations_controller.js

@ -104,7 +104,7 @@ export default class extends ApplicationController {
url: "/api/doctrines/" + doctrine_id + "/annotations/" + annotation_id,
type: 'DELETE',
success: function() {
$this.stimulate("AnnotationReflex#render_annotations_views", { page: 1 })
$this.stimulate("AnnotationReflex#render_annotations_views", { doctrine_id: doctrine_id, page: 1 })
}
})
}

Loading…
Cancel
Save