Changeset 107285 in spip-zone


Ignore:
Timestamp:
Nov 3, 2017, 8:21:48 AM (22 months ago)
Author:
labergerie@…
Message:

Initier la config js si on a pas saisie dans cfg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/panolens/trunk/panolens_pipelines.php

    r107275 r107285  
    2525                $js .= 'panolens_options.controlBar = false;';
    2626
    27         if (!empty($controlButtons))
     27        if (!isset($controlButtons))
    2828                $js .= 'panolens_options.controlButtons = ['.$controlButtons.'];';
    2929
     
    5555                $js .= 'panolens_options.indicatorSize = '.$config["indicatorSize"].';';
    5656
    57         $js .= 'panolens_options.output = '.$config["output"].';';
     57        if (!empty($config["output"]))
     58                $js .= 'panolens_options.output = '.$config["output"].';';
    5859
    5960        $js .=  '$(document).ready(function(){';
Note: See TracChangeset for help on using the changeset viewer.