mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-21 04:31:05 -05:00
Various tweaks
This commit is contained in:
4
main.js
4
main.js
@@ -1,6 +1,6 @@
|
||||
function grep(query) {
|
||||
|
||||
$.getJSON("/u/" + NAME + "/grep.php?q=" + query + "&jsoncallback=?", function(data) {
|
||||
$.getJSON("/u/" + NAME + "/grep.php?jsoncallback=?", { q: query }, function(data) {
|
||||
var results = "<p class=\"label\">Searched for: " + query + "</p><ol>";
|
||||
for (var i in data) {
|
||||
tweet = data[i].split('|');
|
||||
@@ -20,7 +20,7 @@ $(document).ready(function() {
|
||||
NAME = window.location.pathname.split('/')[2];
|
||||
$("#name").html(NAME);
|
||||
|
||||
$("input[type=text]").change(function() {
|
||||
$("input[type=search]").change(function() {
|
||||
query = this.value;
|
||||
window.location.search = query;
|
||||
grep(query);
|
||||
|
||||
Reference in New Issue
Block a user