diff options
author | Andrew Dolgov <[email protected]> | 2021-12-14 21:53:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-12-14 21:53:45 +0300 |
commit | 720b31879634f21ea7db85f49d6f07ec7d7344bc (patch) | |
tree | a8657d8762cd2d5d8ea3118731cc9826e9678d05 /index.php | |
parent | 8a645892a60bc3181f598d2192f01cc21f35b719 (diff) |
* fox.form.Select: add several properties allowing it to better
imitate other controls like DropDownButton, etc.
* rework several main toolbar items to use fox.form.Select instead of
other controls
* replace HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM with
HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM2 because of markup change (option
instead of menuitem)
* PluginHost: add some explicit typecasts to make intellephense shut up
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 21 |
1 files changed, 7 insertions, 14 deletions
@@ -215,20 +215,13 @@ ?> </select> - <div class="catchup-button" dojoType="fox.form.ComboButton" onclick="Feeds.catchupCurrent()"> - <span><?= __('Mark as read') ?></span> - <div dojoType="dijit.DropDownMenu"> - <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1day')"> - <?= __('Older than one day') ?> - </div> - <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1week')"> - <?= __('Older than one week') ?> - </div> - <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('2week')"> - <?= __('Older than two weeks') ?> - </div> - </div> - </div> + <select class="catchup-button" id="main-catchup-dropdown" dojoType="fox.form.Select" + data-prevent-value-change="true"> + <option value=""><?= __('Mark as read') ?></option> + <option value="1day"><?= __('Older than one day') ?></option> + <option value="1week"><?= __('Older than one week') ?></option> + <option value="2week"><?= __('Older than two weeks') ?></option> + </select> </form> |