Browse Source

Merge pull request #93 from lexintegritastech/improve-main-ui

Fix `morph` of `annotations`
pull/94/head
Alexander D. Bondoc 4 years ago committed by GitHub
parent
commit
89501bd677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/javascript/controllers/annotations_controller.js

2
app/javascript/controllers/annotations_controller.js

@ -87,7 +87,7 @@ export default class extends ApplicationController {
$.post("/api/doctrines/" + doctrine_id + "/annotations", params, function(result, status) { $.post("/api/doctrines/" + doctrine_id + "/annotations", params, function(result, status) {
if(status === "success") { if(status === "success") {
$(".btn-close-x").trigger("click") $(".btn-close-x").trigger("click")
$this.stimulate("AnnotationReflex#render_annotations_views", { page: 1 }) $this.stimulate("AnnotationReflex#render_annotations_views", { doctrine_id: doctrine_id, page: 1 })
$this.stimulate("AnnotationReflex#render_default_case_lists_search", doctrine_id) $this.stimulate("AnnotationReflex#render_default_case_lists_search", doctrine_id)
} }
}) })

Loading…
Cancel
Save