add confirmation to Mark as read action (closes #96)
This commit is contained in:
parent
fe6c1902f1
commit
fce2483891
|
@ -555,3 +555,12 @@ function parse_runtime_info(elem) {
|
||||||
param = param.nextSibling;
|
param = param.nextSibling;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function catchupCurrentFeed() {
|
||||||
|
|
||||||
|
var fn = getFeedName(getActiveFeedId());
|
||||||
|
|
||||||
|
if (confirm("Mark all articles in " + fn + " as read?")) {
|
||||||
|
return viewCurrentFeed(0, 'MarkAllRead')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ window.onload = init;
|
||||||
onclick="viewCurrentFeed(0, 'ForceUpdate')" value="Update">
|
onclick="viewCurrentFeed(0, 'ForceUpdate')" value="Update">
|
||||||
|
|
||||||
<input class="button" type="submit"
|
<input class="button" type="submit"
|
||||||
onclick="viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
|
onclick="catchupCurrentFeed()" value="Mark as read">
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
|
|
Loading…
Reference in New Issue