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

@ -18,7 +18,7 @@ echo '<!DOCTYPE html>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="robots" content="noindex,nofollow">
<link href="'.$paths['img'].'/favicon.png" rel="icon" type="image/x-icon" />';
if (file_exists(DOCROOT.'/manifest.json')) {
@ -51,7 +51,7 @@ if (Auth::check()) {
echo '
search.push("search_'.$field_name.'");
search["search_'.$field_name.'"] = "'.$value.'";';
search["search_'.$field_name.'"] = "'.addslashes($value).'";';
}
}
}
@ -145,7 +145,7 @@ if (Auth::check()) {
id_module: "'.$id_module.'",
id_record: "'.$id_record.'",
is_mobile: '.isMobile().',
cifre_decimali: '.setting('Cifre decimali per importi').',
@ -170,7 +170,7 @@ if (Auth::check()) {
ckeditorToolbar: [
["Undo","Redo","-","Cut","Copy","Paste","PasteText","PasteFromWord","-","Scayt", "-","Link","Unlink","-","Bold","Italic","Underline","Superscript","SpecialChar","HorizontalRule","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","Outdent","Indent","Blockquote","-","Styles","Format","Image","Table", "TextColor", "BGColor" ],
],
order_manager_id: "'.($dbo->isInstalled() ? Modules::get('Stato dei servizi')['id'] : '').'",
dataload_page_buffer: '.setting('Lunghezza in pagine del buffer Datatables').',
tempo_attesa_ricerche: '.setting('Tempo di attesa ricerche in secondi').',
@ -181,7 +181,7 @@ if (Auth::check()) {
<script>
globals = {
rootdir: "'.$rootdir.'",
search: {},
translations: {
password: {
@ -202,7 +202,7 @@ if (Auth::check()) {
"veryStrong": "'.tr('Molto forte').'",
},
},
timestamp_format: "'.formatter()->getTimestampPattern().'",
date_format: "'.formatter()->getDatePattern().'",
time_format: "'.formatter()->getTimePattern().'",
@ -296,7 +296,7 @@ if (Auth::check()) {
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">'.tr('Mostra/nascondi menu').'</span>