rework actions
This commit is contained in:
parent
ab1c2c9de5
commit
c09ec856aa
14
tt-rss.js
14
tt-rss.js
|
@ -401,11 +401,17 @@ function init_second_stage() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function quickMenuGo() {
|
function quickMenuChange() {
|
||||||
|
|
||||||
var chooser = document.getElementById("quickMenuChooser");
|
var chooser = document.getElementById("quickMenuChooser");
|
||||||
var opid = chooser[chooser.selectedIndex].id;
|
var opid = chooser[chooser.selectedIndex].id;
|
||||||
|
|
||||||
|
chooser.selectedIndex = 0;
|
||||||
|
quickMenuGo(opid);
|
||||||
|
}
|
||||||
|
|
||||||
|
function quickMenuGo(opid) {
|
||||||
|
|
||||||
|
|
||||||
if (opid == "qmcPrefs") {
|
if (opid == "qmcPrefs") {
|
||||||
gotoPreferences();
|
gotoPreferences();
|
||||||
}
|
}
|
||||||
|
@ -570,11 +576,13 @@ function qfdDelete(feed_id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function allFeedsMenuGo() {
|
function allFeedsMenuChange() {
|
||||||
var chooser = document.getElementById("allFeedsChooser");
|
var chooser = document.getElementById("allFeedsChooser");
|
||||||
|
|
||||||
var opname = chooser[chooser.selectedIndex].text;
|
var opname = chooser[chooser.selectedIndex].text;
|
||||||
|
|
||||||
|
chooser.selectedIndex = 0;
|
||||||
|
|
||||||
if (opname == "Update") {
|
if (opname == "Update") {
|
||||||
scheduleFeedUpdate(true);
|
scheduleFeedUpdate(true);
|
||||||
return;
|
return;
|
||||||
|
|
21
tt-rss.php
21
tt-rss.php
|
@ -106,16 +106,15 @@
|
||||||
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="feedsFrameWithActions"> </iframe>
|
id="feeds-frame" name="feeds-frame" class="feedsFrameWithActions"> </iframe>
|
||||||
|
|
||||||
<div align="center">All feeds:
|
<div align="center">
|
||||||
|
|
||||||
<select id="allFeedsChooser">
|
<select id="allFeedsChooser" onchange="allFeedsMenuChange()">
|
||||||
|
<option selected>All feeds...</option>
|
||||||
<option>Update</option>
|
<option>Update</option>
|
||||||
<option>Mark as read</option>
|
<option>Mark as read</option>
|
||||||
<option>Show only unread</option>
|
<option>Show only unread</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<input type="submit" class="button" onclick="allFeedsMenuGo()" value="Go">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<? } else { ?>
|
<? } else { ?>
|
||||||
|
@ -208,13 +207,14 @@
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
Actions: <select id="quickMenuChooser">
|
<select id="quickMenuChooser" onchange="quickMenuChange()">
|
||||||
<option id="qmcPrefs" selected>Preferences...</option>
|
<option id="qmcDefault" selected>Actions...</option>
|
||||||
<option id="qmcSearch">Search...</option>
|
<option id="qmcPrefs">Preferences</option>
|
||||||
|
<option id="qmcSearch">Search</option>
|
||||||
<option disabled>--------</option>
|
<option disabled>--------</option>
|
||||||
<option style="color : #5050aa" disabled>Feed actions:</option>
|
<option style="color : #5050aa" disabled>Feed actions:</option>
|
||||||
<option id="qmcAddFeed"> Add new feed...</option>
|
<option id="qmcAddFeed"> Add new feed</option>
|
||||||
<option id="qmcRemoveFeed"> Remove this feed...</option>
|
<option id="qmcRemoveFeed"> 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>
|
||||||
|
@ -223,9 +223,8 @@
|
||||||
<option id="qmcShowOnlyUnread"> Show only unread</option>
|
<option id="qmcShowOnlyUnread"> Show only unread</option>
|
||||||
<option disabled>--------</option>
|
<option disabled>--------</option>
|
||||||
<option style="color : #5050aa" disabled>Other actions:</option>
|
<option style="color : #5050aa" disabled>Other actions:</option>
|
||||||
<option id="qmcAddFilter"> Add filter...</option>
|
<option id="qmcAddFilter"> Add filter</option>
|
||||||
</select>
|
</select>
|
||||||
<input type="submit" class="button" onclick="quickMenuGo()" value="Go">
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue