editor was inserting one comma to much in case the popup target was _blank

This commit is contained in:
Ralf Becker 2005-11-11 08:48:03 +00:00
parent 1b78b1eed8
commit b668ae7f1a

View File

@ -1016,8 +1016,8 @@
}
if ($matches[5] != '450')
{
$cell_content['onclick'] .= ($matches[3]=='_blank' ? ',':'').
($matches[4]=='600' ? ',':'').','.$matches[5];
$cell_content['onclick'] .= ($matches[4]=='600' ? ','.($matches[3]=='_blank' ? ',':'') : '').
','.$matches[5];
}
$cell_content['onclick_type'] = 'popup';
}
@ -1061,6 +1061,7 @@
}
unset($widget['onclick_type']);
}
//echo "<p>editor::fix_set_onclick(,,widget2content=".(int)$widget2content.") widget="; _debug_array($widget); echo "content="; _debug_array($cell_content);
}
/**