mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-11 15:14:01 +01:00
Fix #838
This commit is contained in:
parent
af60bd092b
commit
a3b384f4f3
@ -184,7 +184,7 @@ function start_datatables() {
|
|||||||
|
|
||||||
var value = search['search_' + name] ? search['search_' + name] : '';
|
var value = search['search_' + name] ? search['search_' + name] : '';
|
||||||
|
|
||||||
$('<br><input type="text" style="width:100%" class="form-control' + (value ? ' input-searching' : '') + '" placeholder="' + globals.translations.filter + '..." value="' + value + '"><i class="deleteicon fa fa-times fa-2x' + (value ? '' : ' hide') + '"></i>')
|
$('<br><input type="text" style="width:100%" class="form-control' + (value ? ' input-searching' : '') + '" placeholder="' + globals.translations.filter + '..." value="' + value.replace(/"/g, '"') + '"><i class="deleteicon fa fa-times fa-2x' + (value ? '' : ' hide') + '"></i>')
|
||||||
.appendTo(column.header())
|
.appendTo(column.header())
|
||||||
.on('keyup', function (e) {
|
.on('keyup', function (e) {
|
||||||
clearInterval(tempo);
|
clearInterval(tempo);
|
||||||
|
@ -51,7 +51,7 @@ if (Auth::check()) {
|
|||||||
|
|
||||||
echo '
|
echo '
|
||||||
search.push("search_'.$field_name.'");
|
search.push("search_'.$field_name.'");
|
||||||
search["search_'.$field_name.'"] = "'.$value.'";';
|
search["search_'.$field_name.'"] = "'.addslashes($value).'";';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user