From: Andrew Dolgov Date: Tue, 12 Jan 2010 11:44:41 +0000 (+0300) Subject: code cleanup; initial button usage X-Git-Tag: 1.4.0~86 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f88c78147edb6449f291f47273b2e78ed528a1ab;p=tt-rss.git code cleanup; initial button usage --- diff --git a/functions.js b/functions.js index 8335f7e6..1e167c94 100644 --- a/functions.js +++ b/functions.js @@ -2068,20 +2068,11 @@ function updateFeedBrowser() { var c = $("browseFeedList"); var r = transport.responseXML.getElementsByTagName("content")[0]; var nr = transport.responseXML.getElementsByTagName("num-results")[0]; - var sb = $("feed_browser_subscribe"); if (c && r) { c.innerHTML = r.firstChild.nodeValue; } - if (nr && sb) { - if (nr.getAttribute("value") > 0) { - sb.disabled = false; - } else { - sb.disabled = true; - } - } - } }); } catch (e) { diff --git a/modules/help.php b/modules/help.php index 64ec087b..716a756d 100644 --- a/modules/help.php +++ b/modules/help.php @@ -17,9 +17,8 @@ print "

".__("Help topic not found.")."

"; } print "
-
"; + "; if (!$_REQUEST["noheaders"]) { print ""; diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 00efdcb7..12c912ea 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -72,11 +72,9 @@ print __("URL:") . " "; - print ""; + name=\"feed_url\">"; print "
"; @@ -87,31 +85,15 @@ print ""; - -/* print "
"; - - print __("Some feeds require authentication. If you subscribe to such - feed, you will have to enter your login and password in Feed Editor"); - - print "
"; */ - -/* print "

- ".__('Click here if this feed requires authentication.')."
"; */ - print ""; @@ -125,15 +107,10 @@ print ""; print "
- - - -
"; + + + "; return; } diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 190d8905..f02ae6c4 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -121,15 +121,12 @@ $owner_uid = $_SESSION["uid"]; print ""; print "
- -
"; + + "; print ""; return; diff --git a/prefs.php b/prefs.php index d8118c4c..129e1cf8 100644 --- a/prefs.php +++ b/prefs.php @@ -139,9 +139,10 @@ diff --git a/tt-rss.js b/tt-rss.js index 04671c04..72ee01cc 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -919,7 +919,7 @@ function clearFeedArticles(feed_id) { function collapse_feedlist() { try { - debug("toggle_feedlist"); + debug("collapse_feedlist"); var theme = getInitParam("theme"); if (theme != "" && theme != "compact" && theme != "graycube" && @@ -981,7 +981,7 @@ function collapse_feedlist() { } } catch (e) { - exception_error("toggle_feedlist", e); + exception_error("collapse_feedlist", e); } } diff --git a/tt-rss.php b/tt-rss.php index 88ab1212..6e40333c 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -98,9 +98,10 @@ @@ -206,10 +207,6 @@ id="collapse_feeds_btn" onclick="collapse_feedlist()" class="button" title="" style="display : none"/> - " - id="toggle_feeds_btn" class="button" - onclick="toggle_feedlist()" style="display : none"/> -   +