mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-26 13:08:38 -04:00
Ajoute raccourci load more
Permet de charger les articles suivants en appuyant sur "m" (par défaut)
This commit is contained in:
1 parent
7e65c6b782
commit
69662117a3
5 files changed
+18
-2
No files matched your search
@@ -373,7 +373,8 @@ class configureController extends ActionController {
|
||||
'f10', 'f11', 'f12');
|
||||
$this->view->list_keys = $list_keys;
|
||||
$list_names = array ('mark_read', 'mark_favorite', 'go_website', 'next_entry',
|
||||
'prev_entry', 'next_page', 'prev_page', 'collapse_entry');
|
||||
'prev_entry', 'next_page', 'prev_page', 'collapse_entry',
|
||||
'load_more');
|
||||
|
||||
if (Request::isPost ()) {
|
||||
$shortcuts = Request::param ('shortcuts');
|
||||
|
||||
@@ -343,6 +343,7 @@ class RSSConfigurationDAO extends Model_array {
|
||||
'next_entry' => 'j',
|
||||
'prev_entry' => 'k',
|
||||
'collapse_entry' => 'c',
|
||||
'load_more' => 'm'
|
||||
);
|
||||
public $mail_login = '';
|
||||
public $mark_when = array (
|
||||
|
||||
@@ -61,6 +61,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="group-name" for="load_more_shortcut"><?php echo Translate::t ('load_more'); ?></label>
|
||||
<div class="group-controls">
|
||||
<input type="text" id="load_more_shortcut" name="shortcuts[load_more]" list="keys" value="<?php echo $s['load_more']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group form-actions">
|
||||
<div class="group-controls">
|
||||
<button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
'go_website:"', $s['go_website'], '",',
|
||||
'prev_entry:"', $s['prev_entry'], '",',
|
||||
'next_entry:"', $s['next_entry'], '",',
|
||||
'collapse_entry:"', $s['collapse_entry'], '"',
|
||||
'collapse_entry:"', $s['collapse_entry'], '",',
|
||||
'load_more:"', $s['load_more'], '"',
|
||||
"},\n";
|
||||
|
||||
if (Request::param ('output') === 'global') {
|
||||
|
||||
@@ -381,6 +381,12 @@ function init_shortcuts() {
|
||||
}, {
|
||||
'disable_in_input': true
|
||||
});
|
||||
|
||||
shortcut.add(shortcuts.load_more, function () {
|
||||
load_more_posts();
|
||||
}, {
|
||||
'disable_in_input': true
|
||||
});
|
||||
}
|
||||
|
||||
function init_stream_delegates(divStream) {
|
||||
|
||||
Reference in new issue
Block a user