mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-23 13:58:25 +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] : '';
|
||||
|
||||
$('<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())
|
||||
.on('keyup', function (e) {
|
||||
clearInterval(tempo);
|
||||
|
@ -51,7 +51,7 @@ if (Auth::check()) {
|
||||
|
||||
echo '
|
||||
search.push("search_'.$field_name.'");
|
||||
search["search_'.$field_name.'"] = "'.$value.'";';
|
||||
search["search_'.$field_name.'"] = "'.addslashes($value).'";';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user