Some desperate attempts to make IE8 work.
This commit is contained in:
parent
b860c7dd0e
commit
1388fa11e5
3 changed files with 14 additions and 6 deletions
10
web/map.js
10
web/map.js
|
|
@ -123,13 +123,20 @@ DynMap.prototype = {
|
|||
// Sidebar
|
||||
var sidebar = me.sidebar = $('<div/>')
|
||||
.addClass('sidebar')
|
||||
//.addClass('pinned')
|
||||
.appendTo(container);
|
||||
|
||||
var panel = $('<div/>')
|
||||
.addClass('panel')
|
||||
.appendTo(sidebar);
|
||||
|
||||
// Pin button.
|
||||
var pinbutton = $('<div/>')
|
||||
.addClass('pin')
|
||||
.click(function() {
|
||||
sidebar.toggleClass('pinned');
|
||||
})
|
||||
.appendTo(panel);
|
||||
|
||||
// Worlds
|
||||
var worldlist;
|
||||
$('<fieldset/>')
|
||||
|
|
@ -210,6 +217,7 @@ DynMap.prototype = {
|
|||
setTimeout(function() { me.update(); }, me.options.updaterate);
|
||||
},
|
||||
selectMap: function(map) {
|
||||
if (!map) { throw "Cannot select map " + map; }
|
||||
var me = this;
|
||||
me.map.setMapTypeId('none');
|
||||
me.world = map.world;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue