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,15 +308,6 @@
|
|||||||
this.id = id
|
this.id = id
|
||||||
this.get().results()
|
this.get().results()
|
||||||
|
|
||||||
$('#search_form').submit(event => {
|
|
||||||
event.preventDefault()
|
|
||||||
this.get().results()
|
|
||||||
return false
|
|
||||||
})
|
|
||||||
$("[name='query']").focus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$(document).ready(() => {
|
|
||||||
$('#tipo').dropdown().dropdown('set selected', '*')
|
$('#tipo').dropdown().dropdown('set selected', '*')
|
||||||
@if (trim($post) !== '')
|
@if (trim($post) !== '')
|
||||||
$("[name='query']").val('{{$post}}')
|
$("[name='query']").val('{{$post}}')
|
||||||
@ -325,6 +317,16 @@
|
|||||||
@if (trim($tipo) !== '')
|
@if (trim($tipo) !== '')
|
||||||
$('#tipo').dropdown('set selected', '{{$tipo}}')
|
$('#tipo').dropdown('set selected', '{{$tipo}}')
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
$('#search_form').submit(event => {
|
||||||
|
event.preventDefault()
|
||||||
|
this.get().results()
|
||||||
|
return false
|
||||||
|
})
|
||||||
|
$("[name='query']").focus()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$(document).ready(() => {
|
||||||
results.setup('#results')
|
results.setup('#results')
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user