From 5745919c5a2d058298277911cf39fe7cef1cdfe0 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 14 Nov 2018 09:57:40 +0100 Subject: [PATCH] Fix broken tutorial onclick handler --- api/src/Framework/Tutorial.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Framework/Tutorial.php b/api/src/Framework/Tutorial.php index 1b5bc14fc6..71eae3722d 100644 --- a/api/src/Framework/Tutorial.php +++ b/api/src/Framework/Tutorial.php @@ -83,7 +83,7 @@ class Tutorial ); 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); } $content = array (