mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 14:05:07 +03:00
fix настройки ленты активности
This commit is contained in:
parent
0b544c3e51
commit
093cf33680
|
@ -41,21 +41,20 @@
|
||||||
<div class="stream-settings-userlist">
|
<div class="stream-settings-userlist">
|
||||||
<p><input type="text" id="stream_users_complete" autocomplete="off" />
|
<p><input type="text" id="stream_users_complete" autocomplete="off" />
|
||||||
<a href="javascript:ls.stream.appendUser()">{$aLang.stream_block_config_append}</a></p>
|
<a href="javascript:ls.stream.appendUser()">{$aLang.stream_block_config_append}</a></p>
|
||||||
{if count($aStreamSubscribedUsers)}
|
{if count($aStreamSubscribedUsers)}
|
||||||
<ul id="userfeed_block_users_list">
|
<ul id="stream_block_users_list">
|
||||||
|
{foreach from=$aStreamSubscribedUsers item=oUser}
|
||||||
{foreach from=$aStreamSubscribedUsers item=oUser}
|
{assign var=iUserId value=$oUser->getId()}
|
||||||
{assign var=iUserId value=$oUser->getId()}
|
{if !isset($aStreamFriends.$iUserId)}
|
||||||
{if !isset($aStreamFriends.$iUserId)}
|
<li><input class="streamUserCheckbox input-checkbox"
|
||||||
<li><input class="streamUserCheckbox input-checkbox"
|
type="checkbox"
|
||||||
type="checkbox"
|
id="strm_u_{$iUserId}"
|
||||||
id="strm_u_{$iUserId}"
|
checked="checked"
|
||||||
checked="checked"
|
onClick="if ($(this).attr('checked')) { ls.stream.subscribe({$iUserId}) } else { ls.stream.unsubscribe({$iUserId}) } " />
|
||||||
onClick="if ($(this).attr('checked')) { ls.stream.subscribe({$iUserId}) } else { ls.stream.unsubscribe({$iUserId}) } " />
|
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
|
||||||
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
|
</li>
|
||||||
</li>
|
{/if}
|
||||||
{/if}
|
{/foreach}
|
||||||
{/foreach}
|
|
||||||
</ul>
|
</ul>
|
||||||
{else}
|
{else}
|
||||||
<ul id="stream_block_users_list"></ul>
|
<ul id="stream_block_users_list"></ul>
|
||||||
|
|
|
@ -41,7 +41,7 @@ ls.stream =( function ($) {
|
||||||
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var liElement='<li><input type="checkbox" class="streamUserCheckbox" id="usf_u_'+data.uid+'" checked="checked" onClick="if ($(this).get(\'checked\')) {ls.stream.subscribe(\'users\','+data.uid+')} else {ls.stream.unsubscribe(\'users\','+data.uid+')}" /><a href="'+data.user_web_path+'">'+data.user_login+'</a></li>';
|
var liElement='<li><input type="checkbox" class="streamUserCheckbox input-checkbox" id="usf_u_'+data.uid+'" checked="checked" onClick="if ($(this).get(\'checked\')) {ls.stream.subscribe(\'users\','+data.uid+')} else {ls.stream.unsubscribe(\'users\','+data.uid+')}" /> <a href="'+data.user_web_path+'">'+data.user_login+'</a></li>';
|
||||||
$('#stream_block_users_list').append(liElement);
|
$('#stream_block_users_list').append(liElement);
|
||||||
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,21 +41,20 @@
|
||||||
<div class="stream-settings-userlist">
|
<div class="stream-settings-userlist">
|
||||||
<p><input type="text" id="stream_users_complete" autocomplete="off" />
|
<p><input type="text" id="stream_users_complete" autocomplete="off" />
|
||||||
<a href="javascript:ls.stream.appendUser()">{$aLang.stream_block_config_append}</a></p>
|
<a href="javascript:ls.stream.appendUser()">{$aLang.stream_block_config_append}</a></p>
|
||||||
{if count($aStreamSubscribedUsers)}
|
{if count($aStreamSubscribedUsers)}
|
||||||
<ul id="userfeed_block_users_list">
|
<ul id="stream_block_users_list">
|
||||||
|
{foreach from=$aStreamSubscribedUsers item=oUser}
|
||||||
{foreach from=$aStreamSubscribedUsers item=oUser}
|
{assign var=iUserId value=$oUser->getId()}
|
||||||
{assign var=iUserId value=$oUser->getId()}
|
{if !isset($aStreamFriends.$iUserId)}
|
||||||
{if !isset($aStreamFriends.$iUserId)}
|
<li><input class="streamUserCheckbox input-checkbox"
|
||||||
<li><input class="streamUserCheckbox input-checkbox"
|
type="checkbox"
|
||||||
type="checkbox"
|
id="strm_u_{$iUserId}"
|
||||||
id="strm_u_{$iUserId}"
|
checked="checked"
|
||||||
checked="checked"
|
onClick="if ($(this).attr('checked')) { ls.stream.subscribe({$iUserId}) } else { ls.stream.unsubscribe({$iUserId}) } " />
|
||||||
onClick="if ($(this).attr('checked')) { ls.stream.subscribe({$iUserId}) } else { ls.stream.unsubscribe({$iUserId}) } " />
|
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
|
||||||
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
|
</li>
|
||||||
</li>
|
{/if}
|
||||||
{/if}
|
{/foreach}
|
||||||
{/foreach}
|
|
||||||
</ul>
|
</ul>
|
||||||
{else}
|
{else}
|
||||||
<ul id="stream_block_users_list"></ul>
|
<ul id="stream_block_users_list"></ul>
|
||||||
|
|
|
@ -41,7 +41,7 @@ ls.stream =( function ($) {
|
||||||
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var liElement='<li><input type="checkbox" class="streamUserCheckbox" id="usf_u_'+data.uid+'" checked="checked" onClick="if ($(this).get(\'checked\')) {ls.stream.subscribe(\'users\','+data.uid+')} else {ls.stream.unsubscribe(\'users\','+data.uid+')}" /><a href="'+data.user_web_path+'">'+data.user_login+'</a></li>';
|
var liElement='<li><input type="checkbox" class="streamUserCheckbox input-checkbox" id="usf_u_'+data.uid+'" checked="checked" onClick="if ($(this).get(\'checked\')) {ls.stream.subscribe(\'users\','+data.uid+')} else {ls.stream.unsubscribe(\'users\','+data.uid+')}" /> <a href="'+data.user_web_path+'">'+data.user_login+'</a></li>';
|
||||||
$('#stream_block_users_list').append(liElement);
|
$('#stream_block_users_list').append(liElement);
|
||||||
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
ls.msg.notice(data.sMsgTitle,data.sMsg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue