diff --git a/mod/chat/gui_ajax/module.js b/mod/chat/gui_ajax/module.js index fc4897433dd..0b4761fbb6d 100644 --- a/mod/chat/gui_ajax/module.js +++ b/mod/chat/gui_ajax/module.js @@ -37,7 +37,7 @@ M.mod_chat_ajax.init = function(Y, cfg) { init : function(cfg) { this.cfg = cfg; this.cfg.req_count = this.cfg.req_count || 0; - this.layout = new YAHOO.widget.Layout({ + this.layout = new Y.YUI2.widget.Layout({ units : [ {position: 'right', width: 180, resize: true, gutter: '5px', scroll: true, body: 'chat-userlist', animate: false}, {position: 'bottom', height: 42, resize: false, body: 'chat-input-area', gutter: '5px', collapse: false, resize: false}, @@ -123,7 +123,7 @@ M.mod_chat_ajax.init = function(Y, cfg) { return; */ - this.thememenu = new YAHOO.widget.Menu('basicmenu', {xy:[0,0]}); + this.thememenu = new Y.YUI2.widget.Menu('basicmenu', {xy:[0,0]}); this.thememenu.addItems([ {text: "Bubble", url: this.cfg.chaturl+'&theme=bubble'}, {text: "Compact", url: this.cfg.chaturl+'&theme=compact'}