hide nav search behind a button, css fixes and cleanup
This commit is contained in:
@@ -60,7 +60,7 @@ function contact_format(item) {
|
||||
var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick);
|
||||
if(typeof desc === 'undefined') desc = '';
|
||||
if(desc) desc = ' ('+desc+')';
|
||||
return "<div class='{0}' title='{4}'><img class='dropdown-menu-img-sm' src='{1}'><span class='contactname'>{2}</span><span class='dropdown-sub-text'>{3}</span><div class='clear'></div></div>".format(item.taggable, item.photo, item.name, desc, item.link);
|
||||
return "<div class='{0} dropdown-item dropdown-notification clearfix' title='{4}'><img class='dropdown-menu-img-sm' src='{1}'><span class='contactname'>{2}</span><span class='dropdown-sub-text'>{3}</span></div>".format(item.taggable, item.photo, item.name, desc, item.link);
|
||||
}
|
||||
else
|
||||
return "<div>" + item.text + "</div>";
|
||||
|
||||
@@ -369,10 +369,10 @@ function NavUpdate() {
|
||||
updateCountsOnly = false;
|
||||
|
||||
if(data.network || data.home || data.intros || data.mail || data.all_events || data.notify) {
|
||||
$('#notifications-btn').css('color', 'white').prop('disabled', false);
|
||||
$('#notifications-btn').removeClass('text-muted').addClass('text-white');
|
||||
}
|
||||
else {
|
||||
$('#notifications-btn').css('color', 'grey').prop('disabled', true);
|
||||
$('#notifications-btn').removeClass('text-white').addClass('text-muted');
|
||||
$('#navbar-collapse-1').removeClass('in');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user