new WCF.User.Action.Follow($('.userList > li'));
new WCF.User.Action.Ignore($('.userList > li'));
-
- new WCF.Search.User('#searchUsername', function(data) {
- var $link = '{link controller='User' id=2147483646 title='wcfTitlePlaceholder' encode=false}{/link}';
- window.location = $link.replace('2147483646', data.objectID).replace('wcfTitlePlaceholder', data.label);
- }, false, [ ], false);
+ });
+
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('searchUsername'), {
+ callbackSelect(item) {
+ const link = '{link controller='User' id=2147483646 title='wcftitleplaceholder' encode=false}{/link}';
+ window.location = link.replace('2147483646', item.dataset.objectId).replace('wcftitleplaceholder', item.dataset.label);
+ }
+ });
});
</script>
<button data-type="submit">{lang}wcf.global.button.submit{/lang}</button>
</div>
</div>
-<script>
- $(function() {
- new WCF.Search.User('#assignedUsername');
- $('#assignedUsername').click(function() {
- $(this).parents('li').find('input[type=radio]').click();
+
+<script data-relocate="true">
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ const username = document.getElementById('assignedUsername');
+ new UiUserSearchInput(username);
+
+ username.addEventListener('click', (event) => {
+ event.currentTarget.closest('li').querySelector('input[type=radio]').click();
});
});
</script>
</form>
<script data-relocate="true">
- $(function() {
- new WCF.Search.User($('#searchAuthor'), function(data) {
- $('#searchAuthor').val(data.label);//.focus();
- });
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('searchAuthor'));
});
</script>
</form>
<script data-relocate="true">
- $(function() {
- new WCF.Search.User('#searchUsername', null, false, [ ], false);
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('searchUsername'));
});
</script>
<script data-relocate="true" src="{@$__wcf->getPath()}js/WCF.ImageViewer.js?v={@LAST_UPDATE_TIME}"></script>
{include file='imageViewer'}
<script data-relocate="true">
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('username'));
+ });
+
$(function() {
new WCF.Action.Delete('wcf\\data\\attachment\\AttachmentAction', '.jsAttachmentRow');
- new WCF.Search.User('#username', null, false, [ ], true);
});
</script>
{include file='header' pageTitle='wcf.acp.paidSubscription.transactionLog.list'}
<script data-relocate="true">
- $(function() {
- new WCF.Search.User('#username');
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('username'));
});
</script>
{if $action == 'add'}
<script data-relocate="true">
- $(function() {
- new WCF.Search.User('#username');
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('username'));
});
</script>
{/if}
<script data-relocate="true">
$(function() {
new WCF.Action.Delete('wcf\\data\\paid\\subscription\\user\\PaidSubscriptionUserAction', '.jsPaidSubscriptionUserRow');
- new WCF.Search.User('#username');
+ });
+
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('username'));
});
</script>
{include file='header' pageTitle='wcf.acp.menu.link.userTrophy.list'}
<script data-relocate="true">
- //<![CDATA[
+ require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => {
+ new UiUserSearchInput(document.getElementById('username'));
+ });
+
$(function() {
- new WCF.Search.User('#username');
new WCF.Action.Delete('wcf\\data\\user\\trophy\\UserTrophyAction', '.userTrophyRow');
});
- //]]>
</script>
<header class="contentHeader">