actions menu changes

This commit is contained in:
Andrew Dolgov 2005-11-16 06:16:43 +01:00
parent 7a991cac30
commit cbe45fa8ec
2 changed files with 17 additions and 17 deletions

View file

@ -438,25 +438,25 @@ function init() {
} }
function quickMenuGo() { function quickMenuGo() {
var chooser = document.getElementById("quickMenuChooser"); var chooser = document.getElementById("quickMenuChooser");
var opid = chooser[chooser.selectedIndex].id;
var opname = chooser[chooser.selectedIndex].text; if (opid == "qmcPrefs") {
if (opname == "Preferences") {
gotoPreferences(); gotoPreferences();
} }
if (opname == "Extended search") { if (opid == "qmcAdvSearch") {
displayDlg("search"); displayDlg("search");
return; return;
} }
if (opname.match("Add new feed")) { if (opid == "qmcAddFeed") {
displayDlg("quickAddFeed"); displayDlg("quickAddFeed");
return; return;
} }
if (opname.match("Remove this feed")) { if (opid == "qmcRemoveFeed") {
var actid = getActiveFeedId(); var actid = getActiveFeedId();
if (!actid) { if (!actid) {
@ -468,17 +468,17 @@ function quickMenuGo() {
return; return;
} }
if (opname.match("Update")) { if (opid == "qmcUpdateFeeds") {
scheduleFeedUpdate(true); scheduleFeedUpdate(true);
return; return;
} }
if (opname.match("Mark as read")) { if (opid == "qmcCatchupAll") {
catchupAllFeeds(); catchupAllFeeds();
return; return;
} }
if (opname.match("Toggle display read")) { if (opid == "qmcShowOnlyUnread") {
toggleDispRead(); toggleDispRead();
return; return;
} }
@ -557,7 +557,7 @@ function allFeedsMenuGo() {
return; return;
} }
if (opname == "Toggle display read") { if (opname == "Show only read") {
toggleDispRead(); toggleDispRead();
return; return;
} }

View file

@ -69,7 +69,7 @@
<select id="allFeedsChooser"> <select id="allFeedsChooser">
<option>Update</option> <option>Update</option>
<option>Mark as read</option> <option>Mark as read</option>
<option>Toggle display read</option> <option>Show only unread</option>
</select> </select>
<input type="submit" class="button" onclick="allFeedsMenuGo()" value="Go"> <input type="submit" class="button" onclick="allFeedsMenuGo()" value="Go">
@ -142,17 +142,17 @@
</td> </td>
<td align="right"> <td align="right">
Actions: <select id="quickMenuChooser"> Actions: <select id="quickMenuChooser">
<option selected>Preferences</option> <option id="qmcPrefs" selected>Preferences...</option>
<option disabled>--------</option> <option disabled>--------</option>
<option style="color : #5050aa" disabled>Feed actions:</option> <option style="color : #5050aa" disabled>Feed actions:</option>
<option>&nbsp;&nbsp;Add new feed</option> <option id="qmcAddFeed">&nbsp;&nbsp;Add new feed</option>
<option>&nbsp;&nbsp;Remove this feed</option> <option id="qmcRemoveFeed">&nbsp;&nbsp;Remove this feed</option>
<!-- <option>Edit this feed</option> --> <!-- <option>Edit this feed</option> -->
<option disabled>--------</option> <option disabled>--------</option>
<option style="color : #5050aa" disabled>All feeds:</option> <option style="color : #5050aa" disabled>All feeds:</option>
<option>&nbsp;&nbsp;Update</option> <option id="qmcUpdateFeeds">&nbsp;&nbsp;Update</option>
<option>&nbsp;&nbsp;Mark as read</option> <option id="qmcCatchupAll">&nbsp;&nbsp;Mark as read</option>
<option>&nbsp;&nbsp;Toggle display read</option> <option id="qmcShowOnlyUnread">&nbsp;&nbsp;Show only unread</option>
</select> </select>
<input type="submit" class="button" onclick="quickMenuGo()" value="Go"> <input type="submit" class="button" onclick="quickMenuGo()" value="Go">
</td> </td>