protected function initJs() { $js = UTIL_JsGenerator::newInstance(); $js->addScript('OW.Console.addItem(new OW_ConsoleDropdownList({$uniqId}, {$contentIniqId}), {$key});', array('uniqId' => $this->consoleItem->getUniqId(), 'key' => $this->getKey(), 'contentIniqId' => $this->consoleItem->getContentUniqId())); OW::getDocument()->addOnloadScript($js); $this->list->initJs(); return $this->consoleItem->getUniqId(); }
protected function initJs() { $js = UTIL_JsGenerator::newInstance(); $js->addScript('OW.Console.addItem(new OW_ConsoleDropdownList({$uniqId}, {$contentIniqId}), {$key});', array('uniqId' => $this->consoleItem->getUniqId(), 'key' => $this->getKey(), 'contentIniqId' => $this->consoleItem->getContentUniqId())); OW::getDocument()->addOnloadScript($js); $this->list->initJs(); $js = UTIL_JsGenerator::newInstance(); $js->addScript('OW.MailboxConsole = new OW_MailboxConsole({$key}, {$params});', array('key' => $this->getKey(), 'params' => array('issetMails' => (bool) MAILBOX_BOL_ConversationService::getInstance()->getInboxConversationList(OW::getUser()->getId(), 0, 1)))); OW::getDocument()->addOnloadScript($js); return $this->consoleItem->getUniqId(); }