diff --git a/functions.js b/functions.js index ad6a95f95..8245c71a1 100644 --- a/functions.js +++ b/functions.js @@ -78,7 +78,7 @@ var notify_last_doc = false; function hide_notify() { if (notify_last_doc) { var n = notify_last_doc.getElementById("notify"); - if (navigator.userAgent.match("Firefox")) { + if (browser.isNS) { if (notify_opacity >= 0) { notify_opacity = notify_opacity - 0.2; n.style.opacity = notify_opacity; @@ -1049,3 +1049,4 @@ function toggleSubmitNotEmpty(e, submit_id) { exception_error("toggleSubmitNotEmpty", e); } } + diff --git a/images/overlay.png b/images/overlay.png new file mode 100644 index 000000000..e3a0a7702 Binary files /dev/null and b/images/overlay.png differ diff --git a/prefs.js b/prefs.js index aa0d0a2e1..2c15ae924 100644 --- a/prefs.js +++ b/prefs.js @@ -608,11 +608,11 @@ function removeSelectedFeeds() { if (sel_rows.length > 0) { - var ok = confirm("Unsubscribe selected feeds?"); + var ok = confirm("Unsubscribe from selected feeds?"); if (ok) { - notify("Removing selected feeds..."); + notify("Unsubscribing from selected feeds..."); xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids="+ param_escape(sel_rows.toString()), true); @@ -1214,7 +1214,7 @@ function localPiggieFunction(enable) { var piggie = document.getElementById("piggie"); piggie.style.display = "block"; - if (navigator.userAgent.match("Firefox") && Math.random(1) > 0.5) { + if (browser.isNS && Math.random(1) > 0.5) { piggie2_callback(); } else { piggie_callback(); diff --git a/tt-rss.css b/tt-rss.css index 09678ec42..dfb3ae41a 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -538,9 +538,10 @@ div.helpResponse { border-color : #88b0f0; font-size : small; position : relative; - bottom : 2px; - right : 2px; - padding-bottom : 5px; + top : 30%; + left : 30%; + width : 30%; + padding-bottom : 5px; background-image : url("images/prefs-content.png"); background-position : top left; background-repeat : repeat-x; @@ -548,12 +549,13 @@ div.helpResponse { } #infoBoxShadow { - background-image : url("images/shadow.png"); - position : absolute; - left : 35%; - top : 30%; - width : 30%; + background-image : url("images/overlay.png"); + left : 0; + top : 0; + height : 100%; + width : 100%; z-index : 3; + position : absolute; display : none; } diff --git a/tt-rss.js b/tt-rss.js index f82bb773c..3faf59d4f 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -494,7 +494,7 @@ function quickMenuGo(opid) { return; } - if (confirm("Unsubscribe current feed?")) { + if (confirm("Unsubscribe from current feed?")) { qfdDelete(actid); } diff --git a/tt-rss.php b/tt-rss.php index 0cd2bb85a..c4879ff7a 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -229,7 +229,7 @@ window.onload = init; - +