Browse Source

use a borderlayout for the channel editor panel. fixes #125

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
d0351b3371
  1. 7
      pyweb/mumble/media/js/channelviewerplugins.js

7
pyweb/mumble/media/js/channelviewerplugins.js

@ -241,17 +241,20 @@ Ext.ux.MumbleChannelEditor = Ext.extend( Ext.Component, {
border: false,
title: gettext("Channel description"),
defaults: { "anchor": "-20px" },
layout: 'border',
items: [{
xtype: "textfield",
fieldLabel: "x",
hideLabel: true,
name: "name",
region: "north",
value: chandata.name
}, {
xtype: "htmleditor",
fieldLabel: 'x',
hideLabel: true,
name: "description",
region: "center",
value: chandata.description
}],
}];
@ -317,7 +320,9 @@ Ext.ux.MumbleChannelEditor = Ext.extend( Ext.Component, {
text: gettext("Send message"),
handler: function(btn){
f = btn.ownerCt.ownerCt.getForm().getValues();
Mumble.sendMessageChannel(this.serverid, this.chandata.id, (f.tree || false), f.message, function(provider, response){
Mumble.sendMessageChannel(this.serverid, this.chandata.id,
(f.tree || false), f.message,
function(provider, response){
if( response.type == "exception" ){
Ext.Msg.alert( gettext("Error"), response.message );
}

Loading…
Cancel
Save