Browse Source

fix rendering in webkit based engines (although this impl is sorta ugly)

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
a5ad85784f
  1. 11
      pyweb/mumble/templates/mumble/mumble.html

11
pyweb/mumble/templates/mumble/mumble.html

@ -94,14 +94,18 @@
this.wnd = new Ext.Window({ this.wnd = new Ext.Window({
title: gettext('Login'), title: gettext('Login'),
closable: false, closable: false,
width: 300,
height: 130,
layout: 'fit',
items: { items: {
xtype: 'form',
layout: 'form',
border: false, border: false,
defaults: { anchor: '-20px' },
buttons: [{ buttons: [{
text: gettext('Submit'), text: gettext('Submit'),
handler: function(){ handler: function(){
form = this.ownerCt.ownerCt.getForm().getFieldValues();
Accounts.login(form.username, form.password,
form = this.ownerCt.ownerCt.items.items;
Accounts.login(form[0].getValue(), form[1].getValue(),
function(provider, response){ function(provider, response){
if( response.result.success ){ if( response.result.success ){
window.location.reload(); window.location.reload();
@ -119,6 +123,7 @@
}], }],
items: [{ items: [{
xtype: "textfield", xtype: "textfield",
width: 50,
fieldLabel: gettext("User name"), fieldLabel: gettext("User name"),
name: "username" name: "username"
}, { }, {

Loading…
Cancel
Save