Merge branch 'master' of /home/fox/public_html/testbox/tt-rss
This commit is contained in:
commit
394bfafd80
|
@ -157,7 +157,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
|
||||||
}
|
}
|
||||||
|
|
||||||
enableHotkeys();
|
enableHotkeys();
|
||||||
|
hideAuxDlg();
|
||||||
closeInfoBox();
|
closeInfoBox();
|
||||||
|
|
||||||
Form.enable("main_toolbar_form");
|
Form.enable("main_toolbar_form");
|
||||||
|
@ -329,11 +329,14 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
|
||||||
|
|
||||||
if (!is_cat && img) {
|
if (!is_cat && img) {
|
||||||
|
|
||||||
|
if (!img.src.match("indicator_white")) {
|
||||||
img.alt = img.src;
|
img.alt = img.src;
|
||||||
img.src = 'images/indicator_white.gif';
|
img.src = 'images/indicator_white.gif';
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (!$('FLL-' + feed)) {
|
||||||
var ll = document.createElement('img');
|
var ll = document.createElement('img');
|
||||||
|
|
||||||
ll.src = 'images/indicator_tiny.gif';
|
ll.src = 'images/indicator_tiny.gif';
|
||||||
|
@ -341,8 +344,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
|
||||||
ll.id = 'FLL-' + feed;
|
ll.id = 'FLL-' + feed;
|
||||||
|
|
||||||
feedr.appendChild(ll);
|
feedr.appendChild(ll);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
29
functions.js
29
functions.js
|
@ -532,7 +532,7 @@ function parse_counters(reply, scheduled_call) {
|
||||||
if (feedctr && feedu && feedr) {
|
if (feedctr && feedu && feedr) {
|
||||||
|
|
||||||
if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
|
if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
|
||||||
viewCurrentFeed();
|
displayNewContentPrompt(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML));
|
var row_needs_hl = (ctr > 0 && ctr > parseInt(feedu.innerHTML));
|
||||||
|
@ -2052,12 +2052,16 @@ function updateFeedBrowser() {
|
||||||
query = query + "&search=" + param_escape(search.value);
|
query = query + "&search=" + param_escape(search.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_progress("Loading, please wait...", true);
|
//notify_progress("Loading, please wait...", true);
|
||||||
|
|
||||||
|
Element.show('feed_browser_spinner');
|
||||||
|
|
||||||
new Ajax.Request(query, {
|
new Ajax.Request(query, {
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
notify('');
|
notify('');
|
||||||
|
|
||||||
|
Element.hide('feed_browser_spinner');
|
||||||
|
|
||||||
var c = $("browseFeedList");
|
var c = $("browseFeedList");
|
||||||
var r = transport.responseXML.getElementsByTagName("content")[0];
|
var r = transport.responseXML.getElementsByTagName("content")[0];
|
||||||
var nr = transport.responseXML.getElementsByTagName("num-results")[0];
|
var nr = transport.responseXML.getElementsByTagName("num-results")[0];
|
||||||
|
@ -2190,4 +2194,25 @@ function hotkey_prefix_timeout() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hideAuxDlg() {
|
||||||
|
try {
|
||||||
|
Element.hide('auxDlg');
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("hideAuxDlg", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function displayNewContentPrompt(id) {
|
||||||
|
try {
|
||||||
|
var msg = __("New articles in «%s». <a href='#' onclick='viewCurrentFeed()'>Click to view</a>.");
|
||||||
|
|
||||||
|
msg = msg.replace("%s", getFeedName(id));
|
||||||
|
|
||||||
|
$('auxDlg').innerHTML = msg;
|
||||||
|
|
||||||
|
Element.show('auxDlg');
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("displayNewContentPrompt", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 176 B |
|
@ -70,6 +70,8 @@
|
||||||
|
|
||||||
print "
|
print "
|
||||||
<div style='float : right'>
|
<div style='float : right'>
|
||||||
|
<img style='display : none'
|
||||||
|
id='feed_browser_spinner' src='images/indicator_white.gif'>
|
||||||
<input id=\"feed_browser_search\" size=\"20\" type=\"search\"
|
<input id=\"feed_browser_search\" size=\"20\" type=\"search\"
|
||||||
onfocus=\"javascript:disableHotkeys();\"
|
onfocus=\"javascript:disableHotkeys();\"
|
||||||
onblur=\"javascript:enableHotkeys();\"
|
onblur=\"javascript:enableHotkeys();\"
|
||||||
|
|
|
@ -1222,7 +1222,7 @@ function gotoOnline() {
|
||||||
// if (confirm(__("You won't be able to access offline version of Tiny Tiny RSS until you switch it into offline mode again. Go online?"))) {
|
// if (confirm(__("You won't be able to access offline version of Tiny Tiny RSS until you switch it into offline mode again. Go online?"))) {
|
||||||
if (confirm(__("Tiny Tiny RSS will reload. Go online?"))) {
|
if (confirm(__("Tiny Tiny RSS will reload. Go online?"))) {
|
||||||
//localServer.removeManagedStore("tt-rss");
|
//localServer.removeManagedStore("tt-rss");
|
||||||
window.location.href = "tt-rss.php";
|
window.location.href = "tt-rss.php?online=1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
25
tt-rss.css
25
tt-rss.css
|
@ -216,6 +216,7 @@ ul.feedList img, img.tinyFeedIcon {
|
||||||
margin : 0px 3px 0px 0px;
|
margin : 0px 3px 0px 0px;
|
||||||
width : 16px;
|
width : 16px;
|
||||||
height : 16px;
|
height : 16px;
|
||||||
|
vertical-align : middle;
|
||||||
border-width : 0px;
|
border-width : 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2231,3 +2232,27 @@ div#cmdline {
|
||||||
padding : 3px 5px 3px 5px;
|
padding : 3px 5px 3px 5px;
|
||||||
z-index : 5;
|
z-index : 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#feed_browser_spinner {
|
||||||
|
vertical-align : middle;
|
||||||
|
height : 18px;
|
||||||
|
width : 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#auxDlg {
|
||||||
|
position : absolute;
|
||||||
|
z-index : 3;
|
||||||
|
bottom : 10px;
|
||||||
|
right : 10px;
|
||||||
|
padding : 5px;
|
||||||
|
border-width : 1px;
|
||||||
|
border-style : solid;
|
||||||
|
border-color : #d7c47a;
|
||||||
|
background-color : #fff7d5;
|
||||||
|
color : black;
|
||||||
|
text-align : center;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#auxDlg a {
|
||||||
|
color : #4684ff;
|
||||||
|
}
|
||||||
|
|
|
@ -105,6 +105,7 @@ window.onload = init;
|
||||||
<div id="infoBoxShadow" style="display : none"><div id="infoBox"> </div></div>
|
<div id="infoBoxShadow" style="display : none"><div id="infoBox"> </div></div>
|
||||||
|
|
||||||
<div id="cmdline" style="display : none"></div>
|
<div id="cmdline" style="display : none"></div>
|
||||||
|
<div id="auxDlg" style="zdisplay : none"></div>
|
||||||
|
|
||||||
<div id="errorBoxShadow" style="display : none">
|
<div id="errorBoxShadow" style="display : none">
|
||||||
<div id="errorBox">
|
<div id="errorBox">
|
||||||
|
|
Loading…
Reference in New Issue