Search listado por defecto muestra 25 y cleanup
This commit is contained in:
@ -224,6 +224,7 @@
|
|||||||
parent.append(table)
|
parent.append(table)
|
||||||
|
|
||||||
this.table = new DataTable(table, {
|
this.table = new DataTable(table, {
|
||||||
|
pageLength: 25,
|
||||||
order: [
|
order: [
|
||||||
[0, 'asc'],
|
[0, 'asc'],
|
||||||
[2, 'asc']
|
[2, 'asc']
|
||||||
@ -307,6 +308,16 @@
|
|||||||
this.id = id
|
this.id = id
|
||||||
this.get().results()
|
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 => {
|
$('#search_form').submit(event => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.get().results()
|
this.get().results()
|
||||||
@ -316,15 +327,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$(document).ready(() => {
|
$(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')
|
results.setup('#results')
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user