Fix JS
This commit is contained in:
parent
13f43dbd0b
commit
7213a4dfdd
|
@ -373,7 +373,7 @@ $(document).ready(function () {
|
|||
|
||||
// Widgets ordinabili
|
||||
function start_widgets($widgets) {
|
||||
cls = new Array();
|
||||
cls = [];
|
||||
|
||||
for (i = 0; i < $widgets.length; i++) {
|
||||
$widget = $($widgets[i]);
|
||||
|
@ -530,12 +530,12 @@ function start_datatables() {
|
|||
search.push(array[index]);
|
||||
search[array[index]] = array[value];
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
// Fix per l'URL encoding
|
||||
search.forEach(function (value, index, array) {
|
||||
search[array[index]] = decodeURIComponent(array[value]);
|
||||
})
|
||||
});
|
||||
|
||||
var res = [];
|
||||
$this.find("th").each(function () {
|
||||
|
@ -793,7 +793,7 @@ function start_datatables() {
|
|||
|
||||
selected = selected.filter(function (value, index, self) {
|
||||
return value != '' && self.indexOf(value) === index;
|
||||
})
|
||||
});
|
||||
|
||||
var data = table.rows(indexes).data();
|
||||
|
||||
|
@ -814,7 +814,7 @@ function start_datatables() {
|
|||
|
||||
selected = selected.filter(function (value, index, self) {
|
||||
return value != '' && self.indexOf(value) === index;
|
||||
})
|
||||
});
|
||||
|
||||
$this.data('selected', selected.join(';'));
|
||||
|
||||
|
@ -867,7 +867,7 @@ function start_datatables() {
|
|||
}
|
||||
|
||||
function stopTableSorting(e) {
|
||||
if (!e) var e = window.event
|
||||
if (!e) var e = window.event;
|
||||
e.cancelBubble = true;
|
||||
if (e.stopPropagation) e.stopPropagation();
|
||||
}
|
||||
|
@ -1197,8 +1197,7 @@ function session_set(session_array, value, clear, reload) {
|
|||
|
||||
function session_keep_alive() {
|
||||
$.get(globals.rootdir + '/core.php');
|
||||
};
|
||||
|
||||
}
|
||||
/**
|
||||
* Funzione per gestire i contatori testuali nel formato x/total.
|
||||
* Viene dato un id del campo da verificare come input, viene letto il testo nella forma [0-9]/[0-9] e viene fatto
|
||||
|
@ -1236,7 +1235,7 @@ Number.prototype.formatMoney = function (c, d, t) {
|
|||
j = (j = i.length) > 3 ? j % 3 : 0;
|
||||
|
||||
return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
|
||||
}
|
||||
};
|
||||
|
||||
String.prototype.toEnglish = function () {
|
||||
return numeral(this.toString()).value();
|
||||
|
@ -1325,7 +1324,7 @@ function message(element) {
|
|||
function () {
|
||||
if (data["op"] == undefined) data["op"] = "delete";
|
||||
|
||||
var href = window.location.href.split("#")[0]
|
||||
var href = window.location.href.split("#")[0];
|
||||
if (data["href"] != undefined) {
|
||||
href = data["href"];
|
||||
delete data.href;
|
||||
|
|
|
@ -44,7 +44,7 @@ $(document).ready(function () {
|
|||
today: 'fa fa-street-view',
|
||||
clear: 'fa fa-trash',
|
||||
close: 'fa fa-times'
|
||||
}
|
||||
};
|
||||
|
||||
$('.timestamp-picker').each(function () {
|
||||
$this = $(this);
|
||||
|
@ -66,10 +66,10 @@ $(document).ready(function () {
|
|||
|
||||
//fix per timestamp-picker non visibile con la classe table-responsive
|
||||
$('.timestamp-picker').each(function () {
|
||||
$this = $(this)
|
||||
$this = $(this);
|
||||
$this.on("dp.show", function (e) {
|
||||
$('#tecnici > div').removeClass('table-responsive');
|
||||
})
|
||||
});
|
||||
$this.on("dp.hide", function (e) {
|
||||
$('#tecnici > div').addClass('table-responsive');
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue