| Server IP : 170.10.162.208 / Your IP : 216.73.216.38 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home1/deltahospital/www/wp-content/plugins/quickcal/assets/js/ |
Upload File : |
// Serialize Function
(function($) {
var originalSerializeArray = $.fn.serializeArray;
$.fn.extend({
serializeArray: function () {
var brokenSerialization = originalSerializeArray.apply(this);
var checkboxValues = $(this).find('input[type=checkbox]').map(function () {
return { 'name': this.name, 'value': this.checked };
}).get();
var checkboxKeys = $.map(checkboxValues, function (element) { return element.name; });
var withoutCheckboxes = $.grep(brokenSerialization, function (element) {
return $.inArray(element.name, checkboxKeys) == -1;
});
return $.merge(withoutCheckboxes, checkboxValues);
}
});
$.fn.serializeObject = function()
{
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
} else {
o[this.name] = this.value || '';
}
});
return o;
};
})(jQuery);