mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
add a %d articles selected element
This commit is contained in:
@@ -639,11 +639,33 @@ function toggleSelected(id, force_on) {
|
||||
if (cb) cb.attr("checked", true);
|
||||
}
|
||||
}
|
||||
|
||||
updateSelectedPrompt();
|
||||
} catch (e) {
|
||||
exception_error("toggleSelected", e);
|
||||
}
|
||||
}
|
||||
|
||||
function updateSelectedPrompt() {
|
||||
try {
|
||||
var count = getSelectedArticleIds2().size();
|
||||
var elem = $("selected_prompt");
|
||||
|
||||
if (elem) {
|
||||
elem.innerHTML = ngettext("%d article selected",
|
||||
"%d articles selected", count).replace("%d", count);
|
||||
|
||||
if (count > 0)
|
||||
Element.show(elem);
|
||||
else
|
||||
Element.hide(elem);
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
exception_error("updateSelectedPrompt", e);
|
||||
}
|
||||
}
|
||||
|
||||
function toggleUnread_afh(effect) {
|
||||
try {
|
||||
|
||||
@@ -960,6 +982,8 @@ function selectArticles(mode) {
|
||||
}
|
||||
});
|
||||
|
||||
updateSelectedPrompt();
|
||||
|
||||
} catch (e) {
|
||||
exception_error("selectArticles", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user