You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
948 B

import { end } from '@popperjs/core'
import ApplicationController from './application_controller'
export default class extends ApplicationController {
static targets = ["input"]
connect () {
super.connect()
}
search () {
var $this = this
$.get("/api/jurisprudences/", { q: this.inputTarget.value }, function (data, status) {
if (status === "success") {
$this.stimulate("DocumentReflex#render_index_table", data)
}
});
}
modalDocumentSearch () {
var $this = this
$.get("/api/jurisprudences/", { q: this.inputTarget.value }, function (data, status) {
if (status === "success") {
$this.stimulate("DocumentReflex#render_moda_document_search_table", data)
}
});
}
loadYears () {
$.get("/api/jurisprudences/years", {}, function (data, status) {
if (status === "success") {
$this.stimulate("DocumentReflex#render_years", data)
}
});
}
}