home: order_by simplified

This commit is contained in:
boyska 2018-12-22 21:26:49 +01:00
parent e7fbb1c8c6
commit 7764f1287d

View file

@ -114,7 +114,7 @@
require({cache:{}});
<?php
print get_minified_js(["tt-rss.js",
"functions.js", "feedlist.js", "viewfeed.js", "PluginHost.js"]);
"functions.js", "feedlist.js", "viewfeed.js", "PluginHost.js", "grog.js"]);
?>
</script>
<script type="text/javascript">
@ -164,9 +164,9 @@
<div id="feeds-holder" dojoType="dijit.layout.ContentPane" region="leading" style="width : 20%" splitter="true">
<div id="feeds-actions">
<ul>
<li onclick="quickMenuGo('qmcAddFeed');">
<button class="btn-primary" dojoType="dijit.form.Button">Add feed</button>
</li>
<li onclick="quickMenuGo('qmcAddFeed');"> <button class="btn-primary" dojoType="dijit.form.Button">Add feed</button> </li>
<li onclick="gotoPreferences('feedConfig');"> <button class="btn-secondary" dojoType="dijit.form.Button">Manage feeds</button> </li>
<li onclick="configShare();"> <button class="btn-secondary" dojoType="dijit.form.Button">Publishing options</button> </li>
</ul>
</div>
<div id="feedlistLoading">
@ -204,14 +204,16 @@
</div>
</div>
<select title="<?php echo __('Sort articles') ?>"
onchange="viewModeChanged()"
dojoType="dijit.form.Select" name="order_by">
<option selected="selected" value="default"><?php echo __('Default') ?></option>
<option value="feed_dates"><?php echo __('Newest first') ?></option>
<option value="date_reverse"><?php echo __('Oldest first') ?></option>
<option value="title"><?php echo __('Title') ?></option>
</select>
<div dojoType="dijit.form.DropDownButton">
<span><?php echo __('Sort'); ?></span>
<input name="order_by" style="display: none;" value="default"></input>
<div dojoType="dijit.Menu" style="display: none">
<div onclick="document.getElementsByName('order_by')[0].value = 'default'; viewModeChanged()" dojoType="dijit.MenuItem" ><?php echo __('Default') ?></div>
<div onclick="document.getElementsByName('order_by')[0].value = 'feed_dates'; viewModeChanged()" dojoType="dijit.MenuItem" ><?php echo __('Newest first') ?></div>
<div onclick="document.getElementsByName('order_by')[0].value = 'date_reverse'; viewModeChanged()" dojoType="dijit.MenuItem" ><?php echo __('Oldest first') ?></div>
<div onclick="document.getElementsByName('order_by')[0].value = 'title'; viewModeChanged()" dojoType="dijit.MenuItem" ><?php echo __('Title') ?></div>
</div>
</div>
<div dojoType="dijit.form.ComboButton" onclick="catchupCurrentFeed()">
<span><?php echo __('Mark as read') ?></span>