From 258fda188e5368238606396ad08db2be0fde41bb Mon Sep 17 00:00:00 2001 From: Daku Date: Sat, 8 Mar 2014 15:20:50 +0000 Subject: [PATCH] use different selector rather than hardcoding url --- ext/index/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/index/script.js b/ext/index/script.js index d98c54d8..6842ef34 100644 --- a/ext/index/script.js +++ b/ext/index/script.js @@ -19,8 +19,8 @@ $(function() { } //Generate a random seed when using order:random - $('form[action="/shimmie/post/list"]').submit(function(e){ - var input = $('form[action="/shimmie/post/list"] input[name=search]'); + $('form > input[placeholder="Search"]').parent().submit(function(e){ + var input = $('form > input[placeholder="Search"]'); var tagArr = input.val().split(" "); var rand = (($.inArray("order:random", tagArr) + 1) || ($.inArray("order=random", tagArr) + 1)) - 1;