]> git.wh0rd.org Git - tt-rss.git/commitdiff
opera fixes
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 18 May 2006 13:51:15 +0000 (14:51 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 18 May 2006 13:51:15 +0000 (14:51 +0100)
backend.php
functions.js
opera.css
prefs.js
tt-rss.css

index 766fe218f71f24fee7f4e4a85d7bb9b4847aef84..d7567330e93a2ce05fd271ceb74b75cf22af87aa 100644 (file)
                        cellspacing='0' cellpadding='0'><tr>
                        <td>
                                <input id=\"fadd_link\" 
-                                       onchange=\"javascript:addFeed()\"
                                        onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\"
                                        size=\"40\">
                                <input type=\"submit\" class=\"button\"
 
                        print "<div class=\"prefGenericAddBox\">
                                <input id=\"fadd_cat\" 
-                                       onchange=\"javascript:addFeedCat()\"
                                        onkeyup=\"toggleSubmitNotEmpty(this, 'catadd_submit_btn')\"
                                        size=\"40\">&nbsp;
                                <input 
                print "<div class=\"prefGenericAddBox\">
                        <input id=\"uadd_box\"                  
                                onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
-                               onchange=\"javascript:addUser()\" size=\"40\">&nbsp;";
+                               size=\"40\">&nbsp;";
                        
                print"<input type=\"submit\" class=\"button\" 
                        id=\"user_add_btn\" disabled=\"true\"
index 8245c71a16205b6036d7a9523508c696920f957d..ef7910c71bece112e769409811b82e430b6ceeff 100644 (file)
@@ -1,5 +1,9 @@
 var hotkeys_enabled = true;
 
+function browser_has_opacity() {
+       return navigator.userAgent.match("Gecko") || navigator.userAgent.match("Opera");
+}
+
 function exception_error(location, e) {
        var msg;
 
@@ -78,14 +82,14 @@ var notify_last_doc = false;
 function hide_notify() {
        if (notify_last_doc) {
                var n = notify_last_doc.getElementById("notify");               
-               if (browser.isNS) {
+               if (browser_has_opacity()) {
                        if (notify_opacity >= 0) {
                                notify_opacity = notify_opacity - 0.2;
                                n.style.opacity = notify_opacity;
-                               notify_hide_timerid = window.setTimeout(hide_notify, 20);                               
+                               notify_hide_timerid = window.setTimeout("hide_notify()", 20);   
                        } else {
                                n.style.display = "none";
-                               n.style.opacity = 1;                            
+                               n.style.opacity = 1;
                        }
                } else {
                        n.style.display = "none";
@@ -126,7 +130,7 @@ function notify_real(msg, doc, no_hide, is_err) {
        notify_opacity = 1;
 
        if (!no_hide) {
-               notify_hide_timerid = window.setTimeout(hide_notify, 3000);
+               notify_hide_timerid = window.setTimeout("hide_notify()", 3000);
        }
 }
 
index ce03944078781898639c15ea64459402dd7463df..eba519d1a225f360decacca9b8c6c72695eaec3c 100644 (file)
--- a/opera.css
+++ b/opera.css
@@ -5,3 +5,40 @@ table.main td.headlines {
        border-color : #c0c0c0;
 }
 
+#infoBoxTitle {
+       border-width : 1px 1px 1px 1px;
+       border-style : solid;
+       border-color : #88b0f0;
+       background-color : #88b0f0;
+       padding : 2px;
+       color : white;
+}
+
+
+#infoBox {     
+       border-width : 1px 1px 1px 1px;
+       border-style : solid;
+       border-color : #88b0f0;
+       font-size : small;
+       position : relative;
+       top : 30%;
+       left : 30%;
+       width : 30%;
+       padding-bottom : 5px;   
+       background-image : url("images/prefs-content.png");
+       background-position : top left;
+       background-repeat : repeat-x;
+       background-color : white;
+}
+
+#infoBoxShadow {
+       background-image : url("images/overlay.png");
+       left : 0;
+       top : 0;
+       height : 100%;
+       width : 100%;
+       z-index : 3;
+       position : absolute;
+       display : none;
+}
+
index 2c15ae924f48ac8bcd150dd5cbbc5eac9a099fb5..ccc0d78597afeda1fd178c32c0c2088ae6ddee09 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -1214,7 +1214,7 @@ function localPiggieFunction(enable) {
                var piggie = document.getElementById("piggie");
                piggie.style.display = "block";
 
-               if (browser.isNS && Math.random(1) > 0.5) {     
+               if (navigator.userAgent.match("Gecko") && Math.random(1) > 0.5) {       
                        piggie2_callback();
                } else {
                        piggie_callback();
index eabe3e6f2db65e54a32f3858d75bf3764e024f0c..248c13cdda6c4456daffbefcc2da39c1e7807a5e 100644 (file)
@@ -142,6 +142,7 @@ ul.feedList {
        list-style-type : none;
        margin : 5px;
        padding : 0px 0px 0px 10px;
+       font-size : x-small;
 }
 
 ul.feedList li.feedCat {