mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
parent
f3d652509d
commit
69a0597984
@ -1,13 +1,11 @@
|
||||
{include file='header' pageTitle='chat.acp.room.'|concat:$action}
|
||||
|
||||
<script data-relocate="true" src="{@$__wcf->getPath('wcf')}js/WCF.ACL.js"></script>
|
||||
<script data-relocate="true">
|
||||
//<![CDATA[
|
||||
$(function() {
|
||||
new WCF.ACL.List($('#groupPermissions'), {@$objectTypeID}, ''{if $roomID|isset}, {@$roomID}{/if});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
{include file='aclPermissions'}
|
||||
{if !$roomID|isset}
|
||||
{include file='aclPermissionJavaScript' containerID='groupPermissions'}
|
||||
{else}
|
||||
{include file='aclPermissionJavaScript' containerID='groupPermissions' objectID=$roomID}
|
||||
{/if}
|
||||
|
||||
<header class="boxHeadline">
|
||||
<h1>{lang}chat.acp.room.{$action}{/lang}</h1>
|
||||
|
@ -116,6 +116,7 @@ public function save() {
|
||||
}
|
||||
|
||||
\wcf\system\acl\ACLHandler::getInstance()->save($roomID, $this->objectTypeID);
|
||||
\wcf\system\acl\ACLHandler::getInstance()->disableAssignVariables();
|
||||
\chat\system\permission\PermissionHandler::clearCache();
|
||||
|
||||
$this->saved();
|
||||
@ -137,6 +138,7 @@ public function assignVariables() {
|
||||
parent::assignVariables();
|
||||
|
||||
I18nHandler::getInstance()->assignVariables();
|
||||
\wcf\system\acl\ACLHandler::getInstance()->assignVariables($this->objectTypeID);
|
||||
|
||||
WCF::getTPL()->assign(array(
|
||||
'action' => 'add',
|
||||
|
@ -83,6 +83,7 @@ public function save() {
|
||||
}
|
||||
|
||||
\wcf\system\acl\ACLHandler::getInstance()->save($this->roomID, $this->objectTypeID);
|
||||
\wcf\system\acl\ACLHandler::getInstance()->disableAssignVariables();
|
||||
\chat\system\permission\PermissionHandler::clearCache();
|
||||
|
||||
// update room
|
||||
|
Loading…
Reference in New Issue
Block a user