Ajoute raccourci load more

Permet de charger les articles suivants en appuyant sur "m" (par défaut)
This commit is contained in:
Marien Fressinaud committed 2013-11-28 23:46:56 +01:00
1 parent 7e65c6b782
commit 69662117a3
5 files changed
+18 -2

No files matched your search

+2 -1
View File
@@ -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');
+1
View File
@@ -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 (
+7
View File
@@ -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>
+2 -1
View File
@@ -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') {
+6
View File
@@ -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) {