Search listado por defecto muestra 25 y cleanup
This commit is contained in:
@ -224,6 +224,7 @@
|
||||
parent.append(table)
|
||||
|
||||
this.table = new DataTable(table, {
|
||||
pageLength: 25,
|
||||
order: [
|
||||
[0, 'asc'],
|
||||
[2, 'asc']
|
||||
@ -307,15 +308,6 @@
|
||||
this.id = id
|
||||
this.get().results()
|
||||
|
||||
$('#search_form').submit(event => {
|
||||
event.preventDefault()
|
||||
this.get().results()
|
||||
return false
|
||||
})
|
||||
$("[name='query']").focus()
|
||||
}
|
||||
}
|
||||
$(document).ready(() => {
|
||||
$('#tipo').dropdown().dropdown('set selected', '*')
|
||||
@if (trim($post) !== '')
|
||||
$("[name='query']").val('{{$post}}')
|
||||
@ -325,6 +317,16 @@
|
||||
@if (trim($tipo) !== '')
|
||||
$('#tipo').dropdown('set selected', '{{$tipo}}')
|
||||
@endif
|
||||
|
||||
$('#search_form').submit(event => {
|
||||
event.preventDefault()
|
||||
this.get().results()
|
||||
return false
|
||||
})
|
||||
$("[name='query']").focus()
|
||||
}
|
||||
}
|
||||
$(document).ready(() => {
|
||||
results.setup('#results')
|
||||
})
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user