Пример #1
0
                 break;
             case 2:
                 $koala->alert($itext['TXT_PNAME_BLACKLISTED']);
                 break;
         }
         // Reset PName to old PName
         /*
         $oldPname = $siteMgr->getPName($objectID);
         $jsQueue->add ($objectID, HISTORYTYPE_SITE, 'OBJECT_CHANGE', sGuiUS(), 'site', NULL, NULL, $objectID.'-site', 'pname', $oldPname);
         */
     } else {
         $siteMgr->setName($objectID, $name);
         $siteMgr->setPName($objectID, $pname);
         $siteMgr->setFavicon($objectID, $favicon);
         $siteMgr->setDefaultTemplate($objectID, $defaulttemplate);
         $siteMgr->setTemplateRoot($objectID, $templateroot);
         $jsQueue->add($objectID, HISTORYTYPE_SITE, 'OBJECT_CHANGE', sGuiUS(), 'site', NULL, NULL, $objectID . '-site', 'name', $name);
         $jsQueue->add($objectID, HISTORYTYPE_SITE, 'OBJECT_CHANGE', sGuiUS(), 'page', NULL, NULL, $objectID . '-site', 'name', $name);
         $jsQueue->add($objectID, HISTORYTYPE_SITE, 'OBJECT_CHANGE', sGuiUS(), 'site', NULL, NULL, $objectID . '-site', 'pname', $pname);
         // Re-sort the list
         $koala->queueScript('if (Koala.windows[Koala.windows[\'' . $wid . '\'].boundWindow].sortList) Koala.windows[Koala.windows[\'' . $wid . '\'].boundWindow].sortList();');
         $jsQueue->add($objectID, HISTORYTYPE_SITE, 'REFRESH_WINDOW', sGuiUS(), 'name');
         // Fade all green fields
         $koala->queueScript("Koala.yg_fadeFields(\$('" . $wid . "'), 'input.changed');");
         $jsQueue->add($objectID, HISTORYTYPE_SITE, 'UNHIGHLIGHT_SITE', sGuiUS(), 'name');
     }
     break;
 case 'siteSelectNode':
     $node = $this->params['node'];
     $wid = $this->params['wid'];
     $koala->callJSFunction('Koala.yg_enable', 'tree_btn_delete', 'btn-' . $wid, 'tree_btn');