if the user edits the navbar search, update uuid

This commit is contained in:
Oliver Gorwits
2014-01-25 00:25:18 +00:00
parent 17e85fc122
commit 2ecb56d504

View File

@@ -178,6 +178,11 @@ $(document).ready(function() {
// activate tooltips
$("[rel=tooltip]").tooltip({live: true});
// if the user edits the navbar search, update uuid
$('#nq').on('input', function() {
$('#uuid').attr('value', $('#nq').val());
});
// bind submission to the navbar go icon
$('#navsearchgo').click(function() {
$('#navsearchgo').parents('form').submit();