From 8aff5c39cee0958161685582efaf1c214e4b3518 Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Sun, 15 Apr 2012 18:24:25 -0400 Subject: [PATCH] Fix for mass_tagger when Nice URLs are enabled. --- ext/mass_tagger/script.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/mass_tagger/script.js b/ext/mass_tagger/script.js index 77b7c2e7..91ae12f5 100644 --- a/ext/mass_tagger/script.js +++ b/ext/mass_tagger/script.js @@ -2,10 +2,14 @@ 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; + if (list) { return list; } + + has_thumb_img = ":has(img[src*='_thumbs/'])"; + list = $( post_link + has_thumb_img ).parent(); + + return list; } function toggle_tag( button, id ) {