', String.format( "
{0}
", server.name ), '
'];
for( var i = 0; i < buf.length; i++ )
res.push( '- '+buf[i]+'
' );
res.push( '
' );
if( server.motd ){
- res.push( String.format( '
{0}:', gettext("Welcome message") ) );
+ res.push( String.format( '
{0}:
', gettext("Welcome message") ) );
res.push( String.format( '
{0}
', server.motd ) );
}
res.push( '
' );
diff --git a/pyweb/mumble/templates/mumble/list.html b/pyweb/mumble/templates/mumble/list.html
index 319c4e3..aee3637 100644
--- a/pyweb/mumble/templates/mumble/list.html
+++ b/pyweb/mumble/templates/mumble/list.html
@@ -59,6 +59,11 @@
width: 1.
}],
listeners: {
+ beforerender: function( listview ){
+ listview.store.on("load", function( store, records, objects ){
+ listview.select(0);
+ });
+ },
dblclick: function(listview){
selectedstuff = listview.getSelectedRecords();
MumbleList.serverurl( selectedstuff[0].data.id, function(provider, response){
@@ -78,7 +83,7 @@
region: "center",
title: gettext("Server overview"),
ref: 'descrippanel',
- html: "here goez teh servur descripshun",
+ html: gettext("Loading..."),
}],
});
function updateLayout(){