Made the sidebar use clicking instead of hovering for mobile devices.

This commit is contained in:
FrozenCow 2012-01-07 01:03:39 +01:00
parent 25e8c668ad
commit c72cec7cd0
3 changed files with 38 additions and 24 deletions

View file

@ -328,12 +328,15 @@ DynMap.prototype = {
.append(link=$('<input type="text" />'))
.data('link', link)
.appendTo(container);*/
if(me.options.sidebaropened != 'true') {
$('<div/>')
.addClass('hitbar')
.appendTo(panel);
if(me.options.sidebaropened != 'true') {
var hitbar = $('<div/>')
.addClass('hitbar')
.click(function() {
sidebar.toggleClass('pinned');
})
.appendTo(panel);
}
var alertbox = me.alertbox = $('<div/>')
.addClass('alertbox')
.hide()