Booking edit v3

This commit is contained in:
Kevin Adametz 2021-06-18 15:00:12 +02:00
parent 6706d28f51
commit 6880c7e989
20 changed files with 691 additions and 97 deletions

View file

@ -7,6 +7,20 @@ $('.iq-save-bar').closest('form').find(':input, select, textarea').keydown(funct
showIqSaveBar($(this).closest('form'));
});
function _floatNumber(n) {
'use strict';
n = n.replace(/\./g, '').replace(',', '.');
return parseFloat(n);
}
function _formatNumber(n) {
n = parseFloat(n).toFixed(2);
if(isNaN(n)){
return 0;
}
return n.replace(".", ",");
}
CookiesAddJSONValue = function(name, value) {
var elements = [];
if(Cookies.get(name)){
@ -193,7 +207,9 @@ $(function () {
});
function ajax_object_action(event, object, callback) {
event.preventDefault();
if(event){
event.preventDefault();
}
var data = {};
$.each(object.data(), function(index, value){
if(typeof value !== 'object'){