registerJs(" function ElFinderGetCommands(disabled){ var Commands = elFinder.prototype._options.commands; $.each(disabled, function(i, cmd) { (idx = $.inArray(cmd, Commands)) !== -1 && Commands.splice(idx,1); }); return Commands; } var winHashOld = ''; function elFinderFullscreen(){ var width = $(window).width()-($('#elfinder').outerWidth(true) - $('#elfinder').width()); var height = $(window).height()-($('#elfinder').outerHeight(true) - $('#elfinder').height()); var el = $('#elfinder').elfinder('instance'); var winhash = $(window).width() + '|' + $(window).height(); if(winHashOld == winhash) return; winHashOld = winhash; el.resize(width, height); } $('#elfinder').elfinder(".Json::encode($options).").elfinder('instance'); $(window).resize(elFinderFullscreen); elFinderFullscreen(); "); $this->registerCss(" html, body { height: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; position: relative; padding: 0; margin: 0; } "); ?> beginPage() ?> elFinder 2.0 head() ?> beginBody() ?>
endBody() ?> endPage() ?>