diff options
-rw-r--r-- | include/functions.php | 3 | ||||
-rw-r--r-- | js/functions.js | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index e914ac365..96b502d58 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3350,6 +3350,9 @@ $rv['content'] .= "<div id=\"PTITLE-$id\" style=\"display : none\">" . truncate_string(strip_tags($line['title']), 15) . "</div>"; + $rv['content'] .= "<div id=\"PTITLE-FULL-$id\" style=\"display : none\">" . + strip_tags($line['title']) . "</div>"; + $rv['content'] .= "<div class=\"postReply\" id=\"POST-$id\">"; $rv['content'] .= "<div onclick=\"return postClicked(event, $id)\" diff --git a/js/functions.js b/js/functions.js index 0b0b475c6..b2d79dc56 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1058,6 +1058,17 @@ function quickAddFilter() { href: query}); dialog.show(); + + var lh = dojo.connect(dialog, "onLoad", + function() { + dojo.disconnect(lh); + var title = $("PTITLE-FULL-" + active_post_id); + + if (title) { + $("filterDlg_regExp").value = title.innerHTML; + } + }); + } catch (e) { exception_error("quickAddFilter", e); } |