From db148b55bc8eff50c0487269b64659519323c169 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 20 May 2005 12:01:15 +0000 Subject: [PATCH] - fix_set_onclick was not called, if one navigated to a widget with the arrows - onclick of a button was not reset, when a button was converted to a box --- etemplate/inc/class.editor.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/inc/class.editor.inc.php b/etemplate/inc/class.editor.inc.php index ff4b966eb9..5e86aaea6f 100644 --- a/etemplate/inc/class.editor.inc.php +++ b/etemplate/inc/class.editor.inc.php @@ -527,6 +527,7 @@ { if (!is_array($widget[$n])) $widget[$n] = $n == 1 ? $old : soetemplate::empty_cell(); } + unset($widget['onclick']); // not valid for a box } return; // no change necessary, eg. between different box-types } @@ -1132,6 +1133,7 @@ case 'goto': case 'goto2': $content['cell'] = $widget; + $this->fix_set_onclick($widget,$content['cell'],true); break; case '':