summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-03 18:20:14 +0400
committerAndrew Dolgov <[email protected]>2013-04-03 18:20:14 +0400
commite3ca32a818ce818cf22b5cb49a33d4704369febe (patch)
tree27379a0b9b276d97b4bdf927da5f40c061e53d70 /index.php
parent686852d548a1c078bc4e10d6533443e2092bc1fd (diff)
replace catchupCurrentFeed dropdown with a better control
Diffstat (limited to 'index.php')
-rw-r--r--index.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/index.php b/index.php
index dd3d34b3a..a8cc38ca3 100644
--- a/index.php
+++ b/index.php
@@ -187,15 +187,20 @@
<option value="date_reverse"><?php echo __('Oldest first') ?></option>
</select>
- <select title="<?php echo __('Mark feed as read') ?>"
- onchange="catchupCurrentFeed(this)"
- dojoType="dijit.form.Select" name="catchup_feed">
- <option selected="selected" value="default"><?php echo __('Mark as read') ?></option>
- <option value="all"><?php echo __('All articles') ?></option>
- <option value="1day"><?php echo __('Older than one day') ?></option>
- <option value="1week"><?php echo __('Older than one week') ?></option>
- <option value="2weeks"><?php echo __('Older than two weeks') ?></option>
- </select>
+ <div dojoType="dijit.form.ComboButton" onclick="catchupCurrentFeed()">
+ <span><?php echo __('Mark as read') ?></span>
+ <div dojoType="dijit.DropDownMenu">
+ <div dojoType="dijit.MenuItem" onclick="catchupCurrentFeed('1day')">
+ <?php echo __('Older than one day') ?>
+ </div>
+ <div dojoType="dijit.MenuItem" onclick="catchupCurrentFeed('1week')">
+ <?php echo __('Older than one week') ?>
+ </div>
+ <div dojoType="dijit.MenuItem" onclick="catchupCurrentFeed('2week')">
+ <?php echo __('Older than two weeks') ?>
+ </div>
+ </div>
+ </div>
</form>