1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix push update of online lists

This commit is contained in:
Tim Düsterhus 2015-01-23 20:53:28 +01:00
parent 9ca329571f
commit cced2ee43b
2 changed files with 10 additions and 6 deletions

View File

@ -236,7 +236,7 @@
<script data-relocate="true"> <script data-relocate="true">
//<![CDATA[ //<![CDATA[
(function($, window, undefined) { (function($, window, undefined) {
proxy = new WCF.Action.Proxy({ var proxy = new WCF.Action.Proxy({
data: { data: {
actionName: 'getBoxRoomList', actionName: 'getBoxRoomList',
className: 'chat\\data\\room\\RoomAction', className: 'chat\\data\\room\\RoomAction',
@ -251,8 +251,10 @@
} }
}); });
be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.join', $.proxy(proxy.sendRequest, proxy)); $(function () {
be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.leave', $.proxy(proxy.sendRequest, proxy)); be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.join', proxy.sendRequest.bind(proxy));
be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.leave', proxy.sendRequest.bind(proxy));
});
})(jQuery, this); })(jQuery, this);
//]]> //]]>
</script> </script>

View File

@ -13,7 +13,7 @@
<script data-relocate="true"> <script data-relocate="true">
//<![CDATA[ //<![CDATA[
(function($, window, undefined) { (function($, window, undefined) {
proxy = new WCF.Action.Proxy({ var proxy = new WCF.Action.Proxy({
data: { data: {
actionName: 'getBoxRoomList', actionName: 'getBoxRoomList',
className: 'chat\\data\\room\\RoomAction', className: 'chat\\data\\room\\RoomAction',
@ -31,8 +31,10 @@
} }
}); });
be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.join', $.proxy(proxy.sendRequest, proxy)); $(function () {
be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.leave', $.proxy(proxy.sendRequest, proxy)); be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.join', proxy.sendRequest.bind(proxy));
be.bastelstu.wcf.push.onMessage('be.bastelstu.chat.leave', proxy.sendRequest.bind(proxy));
});
})(jQuery, this); })(jQuery, this);
//]]> //]]>
</script> </script>