Skip to content

Instantly share code, notes, and snippets.

@lennartkoopmann
Created September 16, 2013 20:47
Show Gist options
  • Save lennartkoopmann/6586393 to your computer and use it in GitHub Desktop.
Save lennartkoopmann/6586393 to your computer and use it in GitHub Desktop.
$("#universalsearch .timerange-selector-container .keyword input").typeWatch({
callback: function (string) {
$.ajax({
url: '/a/tools/natural_date_test',
data: {
"string": string,
},
success: function(data) {
console.log(data);
},
statusCode: { 422: function() {
console.log("INVALID");
}}
});
},
wait: 750,
highlight: true,
captureLength: 2
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment