X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.RecordTemplate.js;h=8318098e726bb7e756f4dc99705d75152e906f2e;hb=8172364e826b9d37fb977078a0eafb30450cf9ef;hp=61c1b0f98cd3390c07ca4db5e9c38b632d784f36;hpb=962ae5f991c9a533b22632860edb43a644ed449e;p=kivitendo-erp.git diff --git a/js/kivi.RecordTemplate.js b/js/kivi.RecordTemplate.js index 61c1b0f98..8318098e7 100644 --- a/js/kivi.RecordTemplate.js +++ b/js/kivi.RecordTemplate.js @@ -27,6 +27,9 @@ namespace('kivi.RecordTemplate', function(ns) { return false; } + if ((id !== undefined) && !confirm(kivi.t8('Are you sure you want to update the selected record template with the current values? This cannot be undone.'))) + return false; + var data = $form.serializeArray().filter(function(val) { return val.name !== 'action'; }); data.push({ name: 'action', value: $type.data('save_action') }); data.push({ name: 'record_template_id', value: id });