Skip to content

Instantly share code, notes, and snippets.

@bluemango
Created December 30, 2011 15:39
Show Gist options
  • Save bluemango/1540342 to your computer and use it in GitHub Desktop.
Save bluemango/1540342 to your computer and use it in GitHub Desktop.
JS to replace Zendesk Search box with search docs box
jQuery("#search_box").text("Search");
if (jQuery("#suggestion_submit")) {
jQuery("#suggestion_submit").click(function(e){
var search_string = jQuery("#suggestions_query").val();
var query_string = jQuery("#suggestions_query").val().replace(/\s/g,"+");
window.location = "http://help.bluemangolearning.com/searches?text=" + query_string;
return false;
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment