From 7eb00857b5564c44952bee8c56435de68b546055 Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Tue, 28 Jun 2016 18:15:06 +0300 Subject: [PATCH] add variationIndex --- apps/common/main/lib/controller/Plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/controller/Plugins.js b/apps/common/main/lib/controller/Plugins.js index 43d68e613..e3695ec23 100644 --- a/apps/common/main/lib/controller/Plugins.js +++ b/apps/common/main/lib/controller/Plugins.js @@ -193,8 +193,8 @@ define([ this.api.asc_pluginRun(record.get('guid'), 0, ''); }, - onPluginShow: function(plugin) { - var variation = plugin.get_Variations()[0]; + onPluginShow: function(plugin, variationIndex) { + var variation = plugin.get_Variations()[variationIndex]; if (!variation.get_Visual()) return; if (variation.get_InsideMode()) {