From: Moritz Bunkus Date: Mon, 15 Jul 2013 14:35:09 +0000 (+0200) Subject: Pflichtenhefte: Textlocktitel beim Einfügen setzen, falls noch nicht gesetzt X-Git-Tag: release-3.2.0beta~467^2~119 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0c4efd395e7b759d0315d7f8be0857f4b9c2850e;p=kivitendo-erp.git Pflichtenhefte: Textlocktitel beim Einfügen setzen, falls noch nicht gesetzt --- 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 || '') != '') {