1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 13:58:25 +01:00
This commit is contained in:
Thomas Zilio 2020-06-30 17:38:19 +02:00
parent af60bd092b
commit a3b384f4f3
2 changed files with 8 additions and 8 deletions

View File

@ -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, '&quot;') + '"><i class="deleteicon fa fa-times fa-2x' + (value ? '' : ' hide') + '"></i>')
.appendTo(column.header())
.on('keyup', function (e) {
clearInterval(tempo);

View File

@ -51,7 +51,7 @@ if (Auth::check()) {
echo '
search.push("search_'.$field_name.'");
search["search_'.$field_name.'"] = "'.$value.'";';
search["search_'.$field_name.'"] = "'.addslashes($value).'";';
}
}
}