Commits

Bogdan Savluk committed d3174e1

use uncompressed elfinder script version when debuging

  • Participants
  • Parent commits 7634acb

Comments (0)

Files changed (1)

TinyMceElFinder.php

 class TinyMceElFinder extends TinyMceFileManager
 {
     public $settings = array();
-    public $connectorRoute =false;
+    public $connectorRoute = false;
     private $assetsDir;
 
     private $_id;
         $cs->registerCssFile($this->assetsDir . '/css/elfinder.css');
 
         // elFinder JS
-        $cs->registerScriptFile($this->assetsDir . '/js/elfinder.min.js');
+        if (defined('YII_DEBUG')) {
+            $cs->registerScriptFile($this->assetsDir . '/js/elfinder.full.js');
+        } else {
+            $cs->registerScriptFile($this->assetsDir . '/js/elfinder.min.js');
+        }
         // elFinder translation
         $cs->registerScriptFile($this->assetsDir . '/js/i18n/elfinder.ru.js');