add variationIndex

This commit is contained in:
Oleg Korshul 2016-06-28 18:15:06 +03:00
parent 1ed88734b4
commit 7eb00857b5

View file

@ -193,8 +193,8 @@ define([
this.api.asc_pluginRun(record.get('guid'), 0, ''); this.api.asc_pluginRun(record.get('guid'), 0, '');
}, },
onPluginShow: function(plugin) { onPluginShow: function(plugin, variationIndex) {
var variation = plugin.get_Variations()[0]; var variation = plugin.get_Variations()[variationIndex];
if (!variation.get_Visual()) return; if (!variation.get_Visual()) return;
if (variation.get_InsideMode()) { if (variation.get_InsideMode()) {