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

Loading…
Cancel
Save