Commits

Bogdan Savluk  committed 3a9c312

fix bug with few elFinder widgets on same page

  • Participants
  • Parent commits e4e7f8e

Comments (0)

Files changed (1)

File ElFinderWidget.php

         $id = $this->getId();
         $settings = CJavaScript::encode($this->settings);
         $cs = Yii::app()->getClientScript();
-        $cs->registerScript('elFinder', "$('#$id').elfinder($settings);");
+        $cs->registerScript("elFinder#$id", "$('#$id').elfinder($settings);");
         echo "<div id=\"$id\"></div>";
     }