add confirmation to Mark as read action (closes #96)

This commit is contained in:
Andrew Dolgov 2006-07-18 03:46:27 +01:00
parent fe6c1902f1
commit fce2483891
2 changed files with 10 additions and 1 deletions

View File

@ -555,3 +555,12 @@ function parse_runtime_info(elem) {
param = param.nextSibling;
}
}
function catchupCurrentFeed() {
var fn = getFeedName(getActiveFeedId());
if (confirm("Mark all articles in " + fn + " as read?")) {
return viewCurrentFeed(0, 'MarkAllRead')
}
}

View File

@ -197,7 +197,7 @@ window.onload = init;
onclick="viewCurrentFeed(0, 'ForceUpdate')" value="Update">
<input class="button" type="submit"
onclick="viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
onclick="catchupCurrentFeed()" value="Mark as read">
</td>
<td align="right">