]> git.wh0rd.org Git - tt-rss.git/commitdiff
properly reset selected index of subtoolbar actions dropdown
authorAndrew Dolgov <fox@fakecake.org>
Sat, 20 Nov 2010 21:08:42 +0000 (00:08 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sat, 20 Nov 2010 21:08:42 +0000 (00:08 +0300)
functions.php
viewfeed.js

index f95c7ebc47ad96cfdba6c79d54cc53e059d0343d..e3b3b3d7c0e3d9586da3b5b89060830f60a91f91 100644 (file)
 
                        print "<select dojoType=\"dijit.form.Select\" 
                                onchange=\"headlineActionsChange(this)\">";
-                       print "<option value=\"\">".__('Actions...')."</option>";
+                       print "<option value=\"false\">".__('Actions...')."</option>";
 
 #                      print "<optgroup label=\"".__("Selection toggle:")."\">";
 
index d14d9818049a8b040077858c63bc727169682c4e..2b837be73af428f75df7e99cf6f2f5c68fb84d6c 100644 (file)
@@ -2201,7 +2201,7 @@ function correctHeadlinesOffset(id) {
 function headlineActionsChange(elem) {
        try {
                eval(elem.value);
-               elem.selectedIndex = 0;
+               elem.attr('value', 'false');
        } catch (e) {
                exception_error("headlineActionsChange", e);
        }