From dbc098fba1e8cb92e8e4a627680ab859096437fe Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sat, 21 Aug 2010 15:25:43 +0200 Subject: [PATCH] display user/channel comments in a htmleditor --- pyweb/mumble/media/js/channelviewerplugins.js | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pyweb/mumble/media/js/channelviewerplugins.js b/pyweb/mumble/media/js/channelviewerplugins.js index 7e77fdd..6c674bd 100644 --- a/pyweb/mumble/media/js/channelviewerplugins.js +++ b/pyweb/mumble/media/js/channelviewerplugins.js @@ -25,8 +25,16 @@ Ext.ux.MumbleUserEditor = Ext.extend( Ext.Component, { activeTab: 0, border: false, items: [{ - html: userdata.comment || gettext("No user comment set"), + xtype: "form", + border: false, title: gettext("User comment"), + items: [{ + xtype: "htmleditor", + fieldLabel: 'x', + hideLabel: true, + name: "comment", + value: userdata.comment, + }], }, { title: gettext("Avatar"), html: '', @@ -111,8 +119,17 @@ Ext.ux.MumbleChannelEditor = Ext.extend( Ext.Component, { xtype: "tabpanel", activeTab: 0, items: [{ - html: chandata.description || gettext("No channel description set"), + xtype: "form", + border: false, title: gettext("Channel description"), + defaults: { "anchor": "-20px" }, + items: [{ + xtype: "htmleditor", + fieldLabel: 'x', + hideLabel: true, + name: "description", + value: chandata.description, + }], }], }], width: 500,