Ajouter un bouton "Salons" sur KiwiIRC (Add a button "channels" on KiwiIRC)

116 views
Skip to first unread message

Des Tiny

unread,
Apr 22, 2017, 10:18:04 AM4/22/17
to kiwiirc
voici un script pour plugin, permettant d'ajouter un bouton "Salons" sur l'interface de votre Kiwi.
here's a plugin script to add a "channel" button.


  1. <script type="text/javascript">
  2.     // Add a channel list button in the toolbar
  3.     (function () {
  4.         var channelButtonAdded = false;
  5.  
  6.         var View = Backbone.View.extend({
  7.             initialize: function (options) {
  8.                 // Add channel list button
  9.                 if(!channelButtonAdded) {
  10.                     $(".main").prepend('<li id="chanlist"><button class="btn btn-primary"><i title="Liste des salons" class="fa fa-comments"></i><span class="button-text">&nbsp;Salons</span></button></li>');
  11.                 }
  12.  
  13.                 // Add the action on the button
  14.                 $(document).on("click","#chanlist",function() {
  15.                     if($('.applet .applet_chanlist .chanlist_name').length == 0) {
  16.                         kiwi.components.Network().raw('LIST');
  17.                     } else {
  18.                         // If chanlist is already open, just switch to the applet
  19.                         kiwi.components.Applet.loadOnce('kiwi_chanlist').view.show();
  20.                     }
  21.                 });
  22.             }
  23.         });
  24.  
  25.         new View();
  26.     })();
  27. </script>

Guty corp. Acevedo

unread,
Jul 29, 2019, 2:17:02 AM7/29/19
to kiwiirc

syss00...@gmail.com

unread,
Aug 12, 2019, 6:51:51 PM8/12/19
to kiwiirc

مرجان حیدری

unread,
Aug 13, 2019, 12:15:35 PM8/13/19
to kiwiirc
در شنبه 22 آوریل 2017، ساعت 18:48:04 (UTC+4:30)، Des Tiny نوشته:
در شنبه 22 آوریل 2017، ساعت 18:48:04 (UTC+4:30)، Des Tiny نوشته:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages