Compare commits
2 Commits
abe82e4689
...
06d5327934
Author | SHA1 | Date | |
---|---|---|---|
06d5327934 | |||
6f772a56b8 |
@ -224,6 +224,7 @@
|
||||
parent.append(table)
|
||||
|
||||
this.table = new DataTable(table, {
|
||||
pageLength: 25,
|
||||
order: [
|
||||
[0, 'asc'],
|
||||
[2, 'asc']
|
||||
@ -307,6 +308,16 @@
|
||||
this.id = id
|
||||
this.get().results()
|
||||
|
||||
$('#tipo').dropdown().dropdown('set selected', '*')
|
||||
@if (trim($post) !== '')
|
||||
$("[name='query']").val('{{$post}}')
|
||||
@elseif (trim($query) !== '')
|
||||
$("[name='query']").val('{{$query}}')
|
||||
@endif
|
||||
@if (trim($tipo) !== '')
|
||||
$('#tipo').dropdown('set selected', '{{$tipo}}')
|
||||
@endif
|
||||
|
||||
$('#search_form').submit(event => {
|
||||
event.preventDefault()
|
||||
this.get().results()
|
||||
@ -316,15 +327,6 @@
|
||||
}
|
||||
}
|
||||
$(document).ready(() => {
|
||||
$('#tipo').dropdown().dropdown('set selected', '*')
|
||||
@if (trim($post) !== '')
|
||||
$("[name='query']").val('{{$post}}')
|
||||
@elseif (trim($query) !== '')
|
||||
$("[name='query']").val('{{$query}}')
|
||||
@endif
|
||||
@if (trim($tipo) !== '')
|
||||
$('#tipo').dropdown('set selected', '{{$tipo}}')
|
||||
@endif
|
||||
results.setup('#results')
|
||||
})
|
||||
</script>
|
||||
|
@ -91,8 +91,8 @@ class Proyecto extends Ideal\Repository
|
||||
->select($this->columns())
|
||||
->from("{$this->getTable()} a")
|
||||
->joined($this->joinTerreno())
|
||||
->where("a.descripcion = ?");
|
||||
return $this->fetchOne($query, [$name]);
|
||||
->where("a.descripcion LIKE ?");
|
||||
return $this->fetchOne($query, ["%{$name}%"]);
|
||||
}
|
||||
public function fetchAllActive(): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user