]> lifelog.hopto.org Git - LifeLog.git/commitdiff
upd.
authorWill Budic <redacted>
Wed, 20 Sep 2023 10:07:25 +0000 (20:07 +1000)
committerWill Budic <redacted>
Wed, 20 Sep 2023 10:07:25 +0000 (20:07 +1000)
htdocs/cgi-bin/index.cnf
htdocs/cgi-bin/login_ctr.cgi
htdocs/cgi-bin/wsrc/feeds.js

index 500c86803516b72ce07f820709e4f2115ce966a7..4ca5f38b780f01ca7abe11cff2ada266471cfcd5 100644 (file)
@@ -276,7 +276,7 @@ function loadDocResult(content){
     <hr>
     <a class="ui-button ui-corner-all ui-widget" href="index.cgi">Index</a><hr>
     <a class="ui-button ui-corner-all ui-widget" href="main.cgi">Life Log</a><hr>
-    <a class="ui-button ui-corner-all ui-widget" onclick="return fetchFeeds()">RRS Feeds</a>
+    <a class="ui-button ui-corner-all ui-widget" onclick="return fetchFeeds()">RSS Feeds</a>
 
 >#>
  >div>
@@ -311,6 +311,9 @@ function loadDocResult(content){
                 class="rz"
                 [#[ RSS Here ]#]
             >div>
+            <a<
+                id: rss_anchor
+            >a>
         >div>
         <div<
             id:footer
index adb7735c3e8cac82f7d45981442d927a05b3c24c..ad0aa819e73036a11847b9f1e39e7ae7f3e43068 100755 (executable)
@@ -118,6 +118,7 @@ HTML
                 <br>
             </div>
             <div id="feeds" class="rz" style="width:60% !important;visibility:hidden">RSS</div>
+            <a id="rss_anchor"</a>
           );
 
     Settings::printDebugHTML($DBG) if Settings::debug();
index 0c6bde64d19427a7895d3ee53fc3b14d769a7b49..3ba71914f98810b0fc9d3e7a22427d95dc113c0d 100644 (file)
@@ -6,6 +6,7 @@ function fetchFeeds(){
     );
     pnl.show();
     pnl.css('visibility','visible');
+    $(document).scrollTop( $("#rss_anchor").offset().top );
     $.post('CNFServices.cgi', {service:'feeds',action:'list'}, displayFeeds).fail(
         function(response) {pnl.html("Service Error: "+response.status,response.responseText);pnl.fadeOut(10000);}
     );
@@ -25,4 +26,5 @@ function displayFeeds(content){
     var pnl = $('#feeds');
     pnl.html(content);
     pnl.show();
+    $(document).scrollTop( $("#rss_anchor").offset().top );
 }