]> git.wh0rd.org - tt-rss.git/blobdiff - js/functions.js
Replace all setTimeout strings with functions
[tt-rss.git] / js / functions.js
index 384382554b62721b5def286c9a7829e9e7d6c2b0..63ff4121bb8c8fa56b326bd2794d5ebfb2aede20 100755 (executable)
@@ -668,7 +668,7 @@ function hotkey_prefix_timeout() {
                        Element.hide('cmdline');
                }
 
-               setTimeout("hotkey_prefix_timeout()", 1000);
+               setTimeout(hotkey_prefix_timeout, 1000);
 
        } catch  (e) {
                exception_error("hotkey_prefix_timeout", e);
@@ -1325,7 +1325,7 @@ function unsubscribeFeed(feed_id, title) {
                                                updateFeedList();
                                        } else {
                                                if (feed_id == getActiveFeedId())
-                                                       setTimeout("viewfeed({feed:-5})", 100);
+                                                       setTimeout(function() { viewfeed({feed:-5}) }, 100);
 
                                                if (feed_id < 0) updateFeedList();
                                        }