X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Frequirement_spec_text_block%2F_form.html;h=425a5842cbb8ba4dc69aa8e9f9fdb5197dc97b25;hb=578b62c5b00b467f43c528ad2f7e0880bf08c18d;hp=57462bbf78b5096d97fcb4760c85b7b7da821987;hpb=2ea806480ef25ecd3a61a32d80e216e87210c39d;p=kivitendo-erp.git diff --git a/templates/webpages/requirement_spec_text_block/_form.html b/templates/webpages/requirement_spec_text_block/_form.html index 57462bbf7..425a5842c 100644 --- a/templates/webpages/requirement_spec_text_block/_form.html +++ b/templates/webpages/requirement_spec_text_block/_form.html @@ -67,9 +67,9 @@ function insert_selected_predefined_text() { var title_ctrl = $('#[% id_base %]_title'); - if ( ((title_ctrl.val() || '') != '') - && ((pt.title || '') != '') - && confirm('[%- LxERP.t8("Do you want to overwrite your current title?") %]')) + if ( ((pt.title || '') != '') + && ( ((title_ctrl.val() || '') == '') + || confirm('[%- LxERP.t8("Do you want to overwrite your current title?") %]'))) title_ctrl.val(pt.title); if ((pt.text || '') != '') {