v1.18.x
Baris Usakli 12 years ago
parent 2c215afe33
commit 1f08e407d1

@ -53,7 +53,13 @@
jQuery('#search-fields').hide(); jQuery('#search-fields').hide();
jQuery('#search-button').show(); jQuery('#search-button').show();
}); });
$('#search-fields input').on('blur', function() {
$('#search-fields').hide();
$('#search-button').show();
});
}); });
var rightMenu = $('#right-menu'), var rightMenu = $('#right-menu'),
isLoggedIn = data.uid > 0; isLoggedIn = data.uid > 0;
@ -82,6 +88,7 @@
rightMenu.append(logoutli); rightMenu.append(logoutli);
} }
} else { } else {
$('#search-button').hide();
jQuery('.nodebb-loggedin').hide(); jQuery('.nodebb-loggedin').hide();
jQuery('.nodebb-loggedout').show(); jQuery('.nodebb-loggedout').show();

@ -63,13 +63,13 @@
<form id="search-form" class="navbar-form navbar-right hidden-xs" role="search" method="GET" action=""> <form id="search-form" class="navbar-form navbar-right hidden-xs" role="search" method="GET" action="">
<div class="hide" id="search-fields"> <div class="hide" id="search-fields">
<div class="form-group"> <div class="form-group">
<input type="text" class="form-control" placeholder="Search" name="query" value=""> <input type="text" class="form-control" placeholder="Search" name="query" value="">
</div> </div>
<button type="submit" class="btn btn-default hide">Search</button> <button type="submit" class="btn btn-default hide">Search</button>
</div> </div>
<button id="search-button" type="button" class="btn btn-link nodebb-loggedin"><i class="icon-search"></i></button> <button id="search-button" type="button" class="btn btn-link"><i class="icon-search"></i></button>
</form> </form>
<ul id="right-menu" class="nav navbar-nav navbar-right"> <ul id="right-menu" class="nav navbar-nav navbar-right">
<li class="notifications dropdown text-center hidden-xs"> <li class="notifications dropdown text-center hidden-xs">

Loading…
Cancel
Save