interface tweaks

This commit is contained in:
Andrew Dolgov 2006-05-18 08:56:52 +01:00
parent 6311acbeea
commit 0ceded7a46
5 changed files with 25 additions and 18 deletions

View file

@ -1797,7 +1797,7 @@
// onclick=\"javascript:hideParentElement(this);\" src=\"images/close.png\">"; // onclick=\"javascript:hideParentElement(this);\" src=\"images/close.png\">";
print "<a href=\"javascript:showBlockElement('feedUpdateErrors')\"> print "<a href=\"javascript:showBlockElement('feedUpdateErrors')\">
<b>Feeds with update errors</b> (click to expand)</a>"; <b>Some feeds have update errors (click for details)</b></a>";
print "<ul id=\"feedUpdateErrors\" class=\"nomarks\">"; print "<ul id=\"feedUpdateErrors\" class=\"nomarks\">";

View file

@ -81,12 +81,12 @@ function p_notify(msg) {
if (!n || !nb) return; if (!n || !nb) return;
if (msg == "") { if (msg == "") {
nb.innerHTML = "&nbsp;"; n.style.display = "none";
// n.style.background = "#ffffff";
} else { } else {
nb.innerHTML = msg; n.style.display = "block";
// n.style.background = "#fffff0";
} }
nb.innerHTML = msg;
} }
function notify(msg) { function notify(msg) {
@ -97,13 +97,13 @@ function notify(msg) {
if (!n || !nb) return; if (!n || !nb) return;
if (msg == "") { if (msg == "") {
nb.innerHTML = "&nbsp;"; n.style.display = "none";
// n.style.background = "#ffffff";
} else { } else {
nb.innerHTML = msg; n.style.display = "block";
// n.style.background = "#fffff0";
} }
nb.innerHTML = msg;
} }
function printLockingError() { function printLockingError() {

View file

@ -281,7 +281,7 @@ function addFeed() {
var link = document.getElementById("fadd_link"); var link = document.getElementById("fadd_link");
if (link.value.length == 0) { if (link.value.length == 0) {
alert("Can't add feed: missing feed URL."); alert("Error: No feed URL given.");
} else { } else {
notify("Adding feed..."); notify("Adding feed...");
@ -643,7 +643,7 @@ function feedEditCancel() {
active_feed = false; active_feed = false;
notify("Operation cancelled."); // notify("Operation cancelled.");
/* xmlhttp.open("GET", "backend.php?op=pref-feeds", true); /* xmlhttp.open("GET", "backend.php?op=pref-feeds", true);
xmlhttp.onreadystatechange=feedlist_callback; xmlhttp.onreadystatechange=feedlist_callback;
@ -660,7 +660,7 @@ function feedCatEditCancel() {
active_feed_cat = false; active_feed_cat = false;
notify("Operation cancelled."); // notify("Operation cancelled.");
xmlhttp.open("GET", "backend.php?op=pref-feeds", true); xmlhttp.open("GET", "backend.php?op=pref-feeds", true);
xmlhttp.onreadystatechange=feedlist_callback; xmlhttp.onreadystatechange=feedlist_callback;
@ -799,7 +799,7 @@ function labelEditCancel() {
active_label = false; active_label = false;
notify("Operation cancelled."); // notify("Operation cancelled.");
xmlhttp.open("GET", "backend.php?op=pref-labels", true); xmlhttp.open("GET", "backend.php?op=pref-labels", true);
xmlhttp.onreadystatechange=labellist_callback; xmlhttp.onreadystatechange=labellist_callback;
@ -816,7 +816,7 @@ function userEditCancel() {
active_user = false; active_user = false;
notify("Operation cancelled."); // notify("Operation cancelled.");
xmlhttp.open("GET", "backend.php?op=pref-users", true); xmlhttp.open("GET", "backend.php?op=pref-users", true);
xmlhttp.onreadystatechange=userlist_callback; xmlhttp.onreadystatechange=userlist_callback;
@ -833,7 +833,7 @@ function filterEditCancel() {
active_filter = false; active_filter = false;
notify("Operation cancelled."); // notify("Operation cancelled.");
xmlhttp.open("GET", "backend.php?op=pref-filters", true); xmlhttp.open("GET", "backend.php?op=pref-filters", true);
xmlhttp.onreadystatechange=filterlist_callback; xmlhttp.onreadystatechange=filterlist_callback;

View file

@ -296,9 +296,16 @@ td.notifyBox {
} }
#notify { #notify {
color : black; background : #fff7d5;
font-weight : bold; border : 1px solid #d7c47a;
padding : 3px; padding : 3px;
top : 2px;
right : 2px;
float : right;
position : absolute;
-moz-border-radius : 3px;
font-size : x-small;
font-weight : bold;
} }
#dispSwitch { #dispSwitch {

View file

@ -534,7 +534,7 @@ function qafAdd() {
var link = document.getElementById("qafInput"); var link = document.getElementById("qafInput");
if (link.value.length == 0) { if (link.value.length == 0) {
notify("Missing feed URL."); alert("Error: No feed URL given.");
} else { } else {
notify("Adding feed..."); notify("Adding feed...");