MediaWiki:FandomizedChat/redesign.js

/** * @module         redesign * @description    Redesigns the wiki's chat and adds new features * @version        1.0 * @author         Ultimate Dark Carnage **/

(function($, mw, mainRoom){   function FCRedesign{        this.railInserted = $.Deferred;        this.chatSendButtonInserted = $.Deferred;        this.railOpened = false;        this.railSections = [];    }    FCRedesign.prototype.createRail = function{        $('#ChatHeader .User').wrap($(' ').addClass('ChatRailMenuWrapper chat-rail-menu-wrapper').attr('id', 'ChatRailMenuWrapper'));        var $ChatRailMenu = $('#ChatRailMenuWrapper');        $ChatRailMenu.on('click', $.proxy(function(event){            event.preventDefault;            this.openRail;        }, this));        this.$ChatRailMenu = $ChatRailMenu;        this.createRailHTML;    };    FCRedesign.prototype.createRailHTML = function{        var $ChatRailMenuHTML = $(' ').addClass('ChatRailMenu chat-rail-menu').attr('id', 'ChatRailMenu');    }; }(jQuery, mediaWiki, mainRoom));