1. Bogdan Savluk
  2. yii-elFinder

Commits

Bogdan Savluk  committed 02a3564

use uncompressed elfinder script version when debuging

  • Participants
  • Parent commits d3174e1
  • Branches default

Comments (0)

Files changed (2)

File ElFinderWidget.php

View file
         $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');
 

File ServerFileInput.php

View file
         $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');