]> git.wh0rd.org Git - tt-rss.git/commitdiff
misc dialog style updates
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 18 Nov 2010 19:26:04 +0000 (22:26 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 18 Nov 2010 19:26:04 +0000 (22:26 +0300)
feedlist.js
functions.js
modules/popup-dialog.php
modules/pref-feeds.php
prefs.js
tt-rss.css

index f3332477be2ed58a18c9c3332af3a3723f1b890e..0b59ade4f2d0b15bb9a4b74aa1160d9d548b2df2 100644 (file)
@@ -267,7 +267,7 @@ function request_counters() {
 function displayNewContentPrompt(id) {
        try {
 
-               var msg = "<a href='#' onclick='viewfeed("+id+")'>" +
+               var msg = "<a href='#' onclick='viewCurrentFeed()'>" +
                        __("New articles available in this feed (click to show)") + "</a>";
 
                msg = msg.replace("%s", getFeedName(id));
index 82dc34718d46fc6c009455f0da22a521794c4972..527a6f81701eafff3a36dc29e97748139185316a 100644 (file)
@@ -306,10 +306,28 @@ function toggleSelectListRow(sender) {
        return toggleSelectRow(sender, row);
 }
 
+/* this is for dijit Checkbox */
+function toggleSelectListRow2(sender) {
+       var row = sender.domNode.parentNode;
+       return toggleSelectRow(sender, row);
+}
+
 function tSR(sender, row) {
        return toggleSelectRow(sender, row);
 }
 
+/* this is for dijit Checkbox */
+function toggleSelectRow2(sender, row) {
+
+       if (!row) row = sender.domNode.parentNode.parentNode;
+
+       if (sender.checked && !row.hasClassName('Selected'))
+               row.addClassName('Selected');
+       else
+               row.removeClassName('Selected');
+}
+
+
 function toggleSelectRow(sender, row) {
 
        if (!row) row = sender.parentNode.parentNode;
index 715ea96550e414b01b457bf0c95cf6a00016a07a..ad434bd9b73d93c10851b400491e949b256166b8 100644 (file)
                        print "<input type=\"hidden\" name=\"op\" value=\"rpc\">";
                        print "<input type=\"hidden\" name=\"subop\" value=\"updateFeedBrowser\">"; 
 
-                       print "
+                       print "<div dojoType=\"dijit.Toolbar\">
                                <div style='float : right'>
                                <img style='display : none' 
                                        id='feed_browser_spinner' src='".
                        
                        print "</select> ";
 
-                       print "<p>";
+                       print "</div>";
 
                        $owner_uid = $_SESSION["uid"];
 
index b38d8793cb749a811525b48183e79b97a060dd9d..48563812fd0c4b479cca25a2f543c75f580afa1b 100644 (file)
                                }
                        }
 
-                       print "<div>
+                       print "<div dojoType=\"dijit.Toolbar\">
                                <input id=\"fadd_cat\" 
                                        onkeypress=\"return filterCR(event, addFeedCat)\"
                                        size=\"40\">
                                WHERE owner_uid = ".$_SESSION["uid"]."
                                ORDER BY title");
 
-                       print "<p>";
+#                      print "<p>";
 
                        if (db_num_rows($result) != 0) {
 
-                               print   __('Select:')." 
-                                       <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'all')\">".__('All')."</a>,
-                                       <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'none')\">".__('None')."</a>";
-
+#                              print   __('Select:')." 
+#                                      <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'all')\">".__('All')."</a>,
+#                                      <a href=\"#\" onclick=\"selectTableRows('prefFeedCatList', 'none')\">".__('None')."</a>";
+#
                                print "<div class=\"prefFeedCatHolder\">";
 
                                print "<form id=\"feed_cat_edit_form\" onsubmit=\"return false\">";
                                        $cat_id = $line["id"];
                                        $this_row_id = "id=\"FCATR-$cat_id\"";
                
-                                       print "<tr class=\"$class\" $this_row_id>";
+                                       print "<tr class=\"\" $this_row_id>";
                
                                        $edit_title = htmlspecialchars($line["title"]);
                
                                        print "<td width='5%' align='center'><input 
-                                               onclick='toggleSelectRow(this);' 
+                                               onclick='toggleSelectRow2(this);' dojoType=\"dijit.form.CheckBox\" 
                                                type=\"checkbox\" id=\"FCCHK-$cat_id\"></td>";
        
                                        print "<td>";
                                        $icon_file = ICONS_DIR . "/" . $details["id"] . ".ico";
        
                                        if (file_exists($icon_file) && filesize($icon_file) > 0) {
-                                                       $feed_icon = "<img class=\"tinyFeedIcon\"       src=\"" . ICONS_URL . 
+                                                       $feed_icon = "<img style=\"vertical-align : middle\" class=\"tinyFeedIcon\"     src=\"" . ICONS_URL . 
                                                                "/".$details["id"].".ico\">";
                                        } else {
                                                $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
                                        }
        
-                                       $check_box = "<input onclick='toggleSelectListRow(this)' 
-                                               class='feedBrowseCB' 
+                                       $check_box = "<input onclick='toggleSelectListRow2(this)' 
+                                               dojoType=\"dijit.form.CheckBox\"
                                                type=\"checkbox\" id=\"FBCHK-" . $details["id"] . "\">";
        
                                        $class = ($feedctr % 2) ? "even" : "odd";
                                                src='images/feed-icon-12x12.png'></a>";
 
                                        print "<li title=\"".htmlspecialchars($details["site_url"])."\" 
-                                               class='$class' id=\"FBROW-".$details["id"]."\">$check_box".
+                                               id=\"FBROW-".$details["id"]."\">$check_box".
                                                "$feed_icon $feed_url " . htmlspecialchars($details["title"]) . 
                                                "&nbsp;<span class='subscribers'>($subscribers)</span>
                                                $site_url</li>";
index c959e5dfa32b6ddd4640f44683861605210d09ea..b8b1b49b2830b44168b2d30883765226430c1cef 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -224,7 +224,7 @@ function addFeedCat() {
                                        infobox_callback2(transport);
                                } });
 
-               link.value = "";
+               cat.value = "";
 
        }
 }
@@ -1078,17 +1078,12 @@ function init_second_stage() {
 
                dojo.addOnLoad(function() {
 
-                       var active_tab = getInitParam("prefs_active_tab");
-                       if (!$(active_tab+"Tab")) active_tab = "genConfig";
-                       if (!active_tab || active_tab == '0') active_tab = "genConfig";
+                       var tab = getURLParam('tab');
 
-                       var http_tab = getURLParam('tab');
-
-                       if (http_tab) active_tab = http_tab;
-
-                       var tab = dijit.byId(active_tab + "Tab");
-
-                       if (tab) dijit.byId("pref-tabs").selectChild(tab);
+                       if (tab) {
+                               tab = dijit.byId(tab + "Tab");
+                               if (tab) dijit.byId("pref-tabs").selectChild(tab);
+                       }
 
                        });
 
index 55c1871a7bc45be8f491d61591dd0ca9234c0b48..9edd15c331002909d33fcace492bef85024cf508 100644 (file)
@@ -222,6 +222,16 @@ input.editbox {
        cursor : pointer;
 }
 
+.blankborder, .blankborder td {
+       border-style : solid;
+       border-color : transparent;
+       border-width : 0px 0px 1px 0px;
+}
+
+.Selected, .Selected td {
+       background-color : #fff7d5;
+}
+
 .even.Unread.Selected, .even.Unread.Selected td {
        background-color : #fff7d5;
        font-weight : bold;
@@ -400,8 +410,10 @@ table.prefFeedList td.feedSelect {
 div.prefFeedCatHolder {
        height : 250px;
        overflow : auto;
-       border : 1px solid gray;
-       margin : 5px 0px 5px 0px;
+       border-width : 0px 1px 1px 1px;
+       border-color : #c0c0c0;
+       border-style : solid;
+       margin : 0px 0px 5px 0px;
        background-color : white;
 }
 
@@ -675,7 +687,7 @@ span.groupPrompt {
 }
 
 div.tagCloudContainer {
-       border : 1px solid gray;
+       border : 1px solid #c0c0c0;
        background-color : white;
        margin : 5px 0px 5px 0px;
        padding : 5px;
@@ -683,7 +695,7 @@ div.tagCloudContainer {
 }
 
 div.errorExplained {
-       border : 1px solid gray;
+       border : 1px solid #c0c0c0;
        background-color : white;
        margin : 5px 0px 5px 0px;
        padding : 5px;
@@ -712,16 +724,19 @@ ul.userFeedList {
 ul.browseFeedList {
        height : 300px;
        overflow : auto;
-       list-style-type : none;
+       border-width : 0px 1px 1px 1px;
+       border-color : #c0c0c0;
+       border-style : solid;
        margin : 0px 0px 5px 0px;
-       padding : 0px;
-       border : 1px solid gray;
        background-color : white;
+       list-style-type : none;
+       padding : 0px;
+
 }
 
 ul.browseFeedList li {
        margin : 0px;
-       padding : 0px;
+       padding : 2px 4px 2px 4px;
 }
 
 span.subscribers {