Move options box

This commit is contained in:
Simon McFarlane 2016-01-09 01:31:10 +00:00
parent d46428b5b7
commit 3cb47b5fa8

View File

@ -103,17 +103,19 @@ options_tablist = $("<div id='options_tablist'></div>").appendTo(options_div);
$(function(){
options_button = $("<a href='javascript:void(0)' title='"+_("Options")+"'>["+_("Options")+"]</a>").css("float", "right");
options_button = $("<a href='javascript:void(0)' title='"+_("Options")+"'>["+_("Options")+"]</a>");
if ($(".boardlist.compact-boardlist").length) {
options_button.addClass("cb-item cb-fa").html("<i class='fa fa-gear'></i>");
}
if ($(".boardlist:first").length) {
options_button.appendTo($(".boardlist:first"));
options_button.css('float', 'right').appendTo($(".boardlist:first"));
}
else {
options_button.prependTo($(document.body));
var optsdiv = $('<div style="text-align: right"></div>');
options_button.appendTo(optsdiv);
optsdiv.prependTo($(document.body));
}
options_button.on("click", Options.show);
@ -123,4 +125,4 @@ $(function(){
}();
}();