option DISPLAY_FEEDLIST_ACTIONS, consolidate actions in one dropbox

This commit is contained in:
Andrew Dolgov 2005-11-15 11:18:01 +01:00
parent 3745788e89
commit 7a991cac30
3 changed files with 33 additions and 3 deletions

View File

@ -61,5 +61,10 @@
// */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://username:password@www.your-site.xxx/tt-rss/backend.php?op=rpc&subop=updateAllFeeds&daemon=1" // */30 * * * * /usr/bin/wget -O /dev/null -T 600 "http://username:password@www.your-site.xxx/tt-rss/backend.php?op=rpc&subop=updateAllFeeds&daemon=1"
// //
define(DISPLAY_FEEDLIST_ACTIONS, false);
// display actions dropbox in feedlist, if disabled these actions are
// available in the global actions dropbox
?> ?>

View File

@ -467,6 +467,22 @@ function quickMenuGo() {
displayDlg("quickDelFeed", actid); displayDlg("quickDelFeed", actid);
return; return;
} }
if (opname.match("Update")) {
scheduleFeedUpdate(true);
return;
}
if (opname.match("Mark as read")) {
catchupAllFeeds();
return;
}
if (opname.match("Toggle display read")) {
toggleDispRead();
return;
}
} }
function qafAdd() { function qafAdd() {

View File

@ -61,7 +61,9 @@
<iframe frameborder="0" <iframe frameborder="0"
src="backend.php?op=error&msg=Loading,%20please wait..." src="backend.php?op=error&msg=Loading,%20please wait..."
id="feeds-frame" name="feeds-frame" class="feedsFrame"> </iframe> id="feeds-frame" name="feeds-frame" class="feedsFrame"> </iframe>
<? if (DISPLAY_FEEDLIST_ACTIONS) { ?>
<div align="center">All feeds: <div align="center">All feeds:
<select id="allFeedsChooser"> <select id="allFeedsChooser">
@ -74,6 +76,8 @@
</div> </div>
<? } ?>
</td> </td>
<td valign="top" class="headlinesToolbarBox"> <td valign="top" class="headlinesToolbarBox">
<table width="100%" cellpadding="0" cellspacing="0"> <table width="100%" cellpadding="0" cellspacing="0">
@ -139,11 +143,16 @@
<td align="right"> <td align="right">
Actions: <select id="quickMenuChooser"> Actions: <select id="quickMenuChooser">
<option selected>Preferences</option> <option selected>Preferences</option>
<option disabled>-----</option> <option disabled>--------</option>
<option disabled>Feed actions:</option> <option style="color : #5050aa" disabled>Feed actions:</option>
<option>&nbsp;&nbsp;Add new feed</option> <option>&nbsp;&nbsp;Add new feed</option>
<option>&nbsp;&nbsp;Remove this feed</option> <option>&nbsp;&nbsp;Remove this feed</option>
<!-- <option>Edit this feed</option> --> <!-- <option>Edit this feed</option> -->
<option disabled>--------</option>
<option style="color : #5050aa" disabled>All feeds:</option>
<option>&nbsp;&nbsp;Update</option>
<option>&nbsp;&nbsp;Mark as read</option>
<option>&nbsp;&nbsp;Toggle display read</option>
</select> </select>
<input type="submit" class="button" onclick="quickMenuGo()" value="Go"> <input type="submit" class="button" onclick="quickMenuGo()" value="Go">
</td> </td>