Permalink
Browse files

Added refresh persistence for the search string

  • Loading branch information...
1 parent c5e794e commit 1b7126478b97d001b08d4752165cea82c5862903 Peter Piela committed Jul 26, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 ganglia-web/js/ganglia.js
@@ -44,6 +44,14 @@ $(function(){
jQuery('#metric-search input[name="q"]').liveSearch({url: 'search.php?q=', typeDelay: 500});
+ $( "#search-field-q").keyup(function() {
+ $.cookie("ganglia-search-field-q" + window.name, $(this).val());
+ });
+
+ var search_value = $.cookie("ganglia-search-field-q" + window.name);
+ if (search_value != null && search_value.length > 0)
+ $("#search-field-q").val(search_value);
+
$( "#datepicker-cs" ).datepicker({
showOn: "button",
buttonImage: "img/calendar.gif",

0 comments on commit 1b71264

Please sign in to comment.