Commits

Bogdan Savluk committed 02a3564

use uncompressed elfinder script version when debuging

  • Participants
  • Parent commits d3174e1

Comments (0)

Files changed (2)

ElFinderWidget.php

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

ServerFileInput.php

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