diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index a5ce7a7a6c..13cc494704 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -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 "

editor::fix_set_onclick(,,widget2content=".(int)$widget2content.") widget="; _debug_array($widget); echo "content="; _debug_array($cell_content); } /**