diff options
| author | 2013-06-15 15:55:44 +0200 | |
|---|---|---|
| committer | 2013-06-15 15:55:44 +0200 | |
| commit | 1863153b966af00078869b6634df1daa22cdcbfe (patch) | |
| tree | 72f8fb178fe5555f5d951253807033d1902af830 /public | |
| parent | 6d184ad1b8b84ab31e342f539844e0dc5738423b (diff) | |
Fix issue #71 : remise en place du mode endless + correction bug à l'importation OPML
Diffstat (limited to 'public')
| -rw-r--r-- | public/scripts/endless_mode.js | 31 | ||||
| -rw-r--r-- | public/theme/freshrss.css | 4 | ||||
| -rw-r--r-- | public/theme/loader.gif | bin | 0 -> 4167 bytes |
3 files changed, 35 insertions, 0 deletions
diff --git a/public/scripts/endless_mode.js b/public/scripts/endless_mode.js new file mode 100644 index 000000000..489b69f30 --- /dev/null +++ b/public/scripts/endless_mode.js @@ -0,0 +1,31 @@ +var url_load_more = ""; +var load = false; + +function init_load_more() { + url_load_more = $("a#load_more").attr("href"); + + $("#load_more").click (function () { + load_more_posts (); + + return false; + }); +} + +function load_more_posts () { + load = true; + $("#load_more").addClass("loading"); + $.get (url_load_more, function (data) { + $("#stream .flux:last").after($("#stream .flux", data)); + $(".pagination").html($(".pagination", data).html()); + + init_load_more(); + init_posts(); + + $("#load_more").removeClass("loading"); + load = false; + }); +} + +$(document).ready (function () { + init_load_more(); +});
\ No newline at end of file diff --git a/public/theme/freshrss.css b/public/theme/freshrss.css index 2a8f24ea7..f5d4f6a83 100644 --- a/public/theme/freshrss.css +++ b/public/theme/freshrss.css @@ -357,6 +357,10 @@ color: #333; font-style: italic; } +.loading { + background: url("loader.gif") center center no-repeat; + font-size: 0; +} /*** NOTIFICATION ***/ .notification { diff --git a/public/theme/loader.gif b/public/theme/loader.gif Binary files differnew file mode 100644 index 000000000..5ff26f0e3 --- /dev/null +++ b/public/theme/loader.gif |
