From 0396ec5283dea34a5d03fc400687dda3ad3e7ffd Mon Sep 17 00:00:00 2001 From: Christian Walde Date: Thu, 9 Sep 2010 01:35:38 +0200 Subject: [PATCH] added jquery helper function file --- lib/helpers.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/helpers.js diff --git a/lib/helpers.js b/lib/helpers.js new file mode 100644 index 00000000..0c165e4a --- /dev/null +++ b/lib/helpers.js @@ -0,0 +1,9 @@ +function find_thumb_link_containers () { + + var post_link = "a[href*='/post/view/']"; + var has_thumb_img = ":has(img[src*='/thumb/'])"; + + var list = $( post_link + has_thumb_img ).parent(); + + return list; +}