how to Channel list button

51 views
Skip to first unread message

til...@googlemail.com

unread,
Dec 19, 2016, 10:59:15 AM12/19/16
to kiwiirc
hello can anyone tell me how I can make a channel list button that you click and channel list comes up.

I tried to do it like this

function openList(){swfobject.getObjectById("kiwi").sendCommand("/list");}

<button type="button" onclick="openList();">LIST</button>

but no joy

Thanks

til...@googlemail.com

unread,
Dec 19, 2016, 5:18:12 PM12/19/16
to kiwiirc, til...@googlemail.com

Thanks to Jumper from Kiwiirc channel he made up a code here it is if anyone else wants a channel list button

<script>
(function(){
var input = kiwi.components.ControlInput();
$('#kiwi .input_tools').prepend('<a><i class="fa fa-list-alt" id="channel_list"> Channel List</i></a>');
$(document).on('click','#channel_list', function() {
input.run('/list');
});
})();
</script>

Reply all
Reply to author
Forward
0 new messages