fixed not saved comment on an existing file/attachment

This commit is contained in:
Ralf Becker 2015-01-20 17:36:09 +00:00
parent 8d0857f9bf
commit 2fbc91c5d9

View File

@ -1463,7 +1463,7 @@ var et2_link_list = et2_link_string.extend(
function(button, comment) {
if(button != et2_dialog.OK_BUTTON) return;
var remark = jQuery('#link_'+(self.context.data.dom_id ? self.context.data.dom_id : link_id), self.list).children('.remark');
if(isNaN(self.context.data.id) || isNaN(self.context.data.link_id == 'undefined'))
if(isNaN(self.context.data.link_id)) // new entry, not yet stored
{
remark.text(comment);
// Look for a link-to with the same ID, refresh it