mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-04 19:50:59 +02:00
automatically add active article title in create filter dialog
This commit is contained in:
parent
917c12ee30
commit
e54dbacb7c
@ -3350,6 +3350,9 @@
|
|||||||
$rv['content'] .= "<div id=\"PTITLE-$id\" style=\"display : none\">" .
|
$rv['content'] .= "<div id=\"PTITLE-$id\" style=\"display : none\">" .
|
||||||
truncate_string(strip_tags($line['title']), 15) . "</div>";
|
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 class=\"postReply\" id=\"POST-$id\">";
|
||||||
|
|
||||||
$rv['content'] .= "<div onclick=\"return postClicked(event, $id)\"
|
$rv['content'] .= "<div onclick=\"return postClicked(event, $id)\"
|
||||||
|
@ -1058,6 +1058,17 @@ function quickAddFilter() {
|
|||||||
href: query});
|
href: query});
|
||||||
|
|
||||||
dialog.show();
|
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) {
|
} catch (e) {
|
||||||
exception_error("quickAddFilter", e);
|
exception_error("quickAddFilter", e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user