Better sidemenu style

This commit is contained in:
Nick O'Leary
2015-01-15 21:41:40 +00:00
parent c97ab18e62
commit dd5e851339
3 changed files with 59 additions and 43 deletions

View File

@@ -46,8 +46,12 @@ RED.menu = (function() {
} else {
item = $('<li></li>');
var linkContent = '<a '+(opt.id?'id="'+opt.id+'" ':'')+'tabindex="-1" href="#">'+
(opt.toggle?'<i class="fa fa-check pull-right"></i>':'');
var linkContent = '<a '+(opt.id?'id="'+opt.id+'" ':'')+'tabindex="-1" href="#">';
if (opt.toggle) {
linkContent += '<i class="fa fa-square pull-left"></i>';
linkContent += '<i class="fa fa-check-square pull-left"></i>';
}
if (opt.icon !== undefined) {
if (/\.png/.test(opt.icon)) {
linkContent += '<img src="'+opt.icon+'"/> ';