]> git.wh0rd.org - tt-rss.git/blobdiff - js/prefs.js
Replace all setTimeout strings with functions
[tt-rss.git] / js / prefs.js
index 69e779d4505dfa8ddcc5e14b143a03c8cc9a0579..23d43f366d6433ccaab7f7e5131d400411f5a2d4 100755 (executable)
@@ -901,10 +901,10 @@ function init_second_stage() {
                if (method == 'editFeed') {
                        var param = getURLParam('methodparam');
 
-                       window.setTimeout('editFeed(' + param + ')', 100);
+                       window.setTimeout(function() { editFeed(param) }, 100);
                }
 
-               setTimeout("hotkey_prefix_timeout()", 5*1000);
+               setTimeout(hotkey_prefix_timeout, 5*1000);
 
        } catch (e) {
                exception_error("init_second_stage", e);