Fix broken tutorial onclick handler

This commit is contained in:
Hadi Nategh 2018-11-14 09:57:40 +01:00
parent 924d03e7e0
commit 5745919c5a

View File

@ -83,7 +83,7 @@ class Tutorial
); );
foreach (isset($tutorials[$appName][$lang]) ? $tutorials[$appName][$lang] : $tutorials[$appName]['en'] as $v) foreach (isset($tutorials[$appName][$lang]) ? $tutorials[$appName][$lang] : $tutorials[$appName]['en'] as $v)
{ {
$v ['onclick'] = 'app[egw.app_name()].tutorial_videoOnClick("'.$v['src'].'")'; $v ['onclick'] = 'etemplate2.getByApplication("api")[0].widgetContainer.getWidgetById("src").set_value("'.$v['src'].'")';
array_push($list, $v); array_push($list, $v);
} }
$content = array ( $content = array (