Exemplo n.º 1
0
 public function onBeforeRender()
 {
     parent::onBeforeRender();
     $sharedData = array('additionalSettings' => $this->additionalSettingList, 'place' => $this->placeName);
     $this->initializeJs('BASE_CTRL_AjaxComponentAdminPanel', 'OW_Components_DragAndDrop', $sharedData);
     $jsDragAndDropUrl = OW::getPluginManager()->getPlugin('ADMIN')->getStaticJsUrl() . 'drag_and_drop.js';
     OW::getDocument()->addScript($jsDragAndDropUrl);
 }
 public function onBeforeRender()
 {
     parent::onBeforeRender();
     if ($this->customizeMode) {
         $this->initializeJs($this->responderController, 'OW_Components_DragAndDrop', $this->sharedData);
         $jsDragAndDropUrl = OW::getPluginManager()->getPlugin('BASE')->getStaticJsUrl() . 'drag_and_drop.js';
         OW::getDocument()->addScript($jsDragAndDropUrl);
     }
 }
Exemplo n.º 3
0
 protected function makeSettingList($defaultSettingtList)
 {
     foreach ($this->entitySettingList as $key => $item) {
         $defaultSettingtList[$key] = empty($defaultSettingtList[$key]) ? $this->entitySettingList[$key] : array_merge($defaultSettingtList[$key], $this->entitySettingList[$key]);
     }
     return parent::makeSettingList($defaultSettingtList);
 }
Exemplo n.º 4
0
 public function onBeforeRender()
 {
     parent::onBeforeRender();
     $this->initializeJs('BASE_CTRL_AjaxComponentAdminPanel', 'OW_Components_DragAndDrop', $this->sharedData);
 }