mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 17:21:30 +00:00
replace catchupCurrentFeed dropdown with a better control
This commit is contained in:
23
index.php
23
index.php
@@ -187,15 +187,20 @@
|
|||||||
<option value="date_reverse"><?php echo __('Oldest first') ?></option>
|
<option value="date_reverse"><?php echo __('Oldest first') ?></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select title="<?php echo __('Mark feed as read') ?>"
|
<div dojoType="dijit.form.ComboButton" onclick="catchupCurrentFeed()">
|
||||||
onchange="catchupCurrentFeed(this)"
|
<span><?php echo __('Mark as read') ?></span>
|
||||||
dojoType="dijit.form.Select" name="catchup_feed">
|
<div dojoType="dijit.DropDownMenu">
|
||||||
<option selected="selected" value="default"><?php echo __('Mark as read') ?></option>
|
<div dojoType="dijit.MenuItem" onclick="catchupCurrentFeed('1day')">
|
||||||
<option value="all"><?php echo __('All articles') ?></option>
|
<?php echo __('Older than one day') ?>
|
||||||
<option value="1day"><?php echo __('Older than one day') ?></option>
|
</div>
|
||||||
<option value="1week"><?php echo __('Older than one week') ?></option>
|
<div dojoType="dijit.MenuItem" onclick="catchupCurrentFeed('1week')">
|
||||||
<option value="2weeks"><?php echo __('Older than two weeks') ?></option>
|
<?php echo __('Older than one week') ?>
|
||||||
</select>
|
</div>
|
||||||
|
<div dojoType="dijit.MenuItem" onclick="catchupCurrentFeed('2week')">
|
||||||
|
<?php echo __('Older than two weeks') ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -380,20 +380,8 @@ function getNextUnreadFeed(feed, is_cat) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function catchupCurrentFeed(elem) {
|
function catchupCurrentFeed(mode) {
|
||||||
|
|
||||||
if (elem) {
|
|
||||||
var toolbar = document.forms["main_toolbar_form"];
|
|
||||||
var catchup_feed = dijit.getEnclosingWidget(toolbar.catchup_feed);
|
|
||||||
var mode = catchup_feed.attr('value');
|
|
||||||
|
|
||||||
if (mode != 'default') {
|
|
||||||
catchupFeed(getActiveFeedId(), activeFeedIsCat(), mode);
|
catchupFeed(getActiveFeedId(), activeFeedIsCat(), mode);
|
||||||
catchup_feed.attr('value', 'default');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
catchupFeed(getActiveFeedId(), activeFeedIsCat());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function catchupFeedInGroup(id) {
|
function catchupFeedInGroup(id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user