properly reset selected index of subtoolbar actions dropdown

This commit is contained in:
Andrew Dolgov 2010-11-21 00:08:42 +03:00
parent 37f1a234a5
commit d6034614e0
2 changed files with 2 additions and 2 deletions

View File

@ -4102,7 +4102,7 @@
print "<select dojoType=\"dijit.form.Select\" print "<select dojoType=\"dijit.form.Select\"
onchange=\"headlineActionsChange(this)\">"; onchange=\"headlineActionsChange(this)\">";
print "<option value=\"\">".__('Actions...')."</option>"; print "<option value=\"false\">".__('Actions...')."</option>";
# print "<optgroup label=\"".__("Selection toggle:")."\">"; # print "<optgroup label=\"".__("Selection toggle:")."\">";

View File

@ -2201,7 +2201,7 @@ function correctHeadlinesOffset(id) {
function headlineActionsChange(elem) { function headlineActionsChange(elem) {
try { try {
eval(elem.value); eval(elem.value);
elem.selectedIndex = 0; elem.attr('value', 'false');
} catch (e) { } catch (e) {
exception_error("headlineActionsChange", e); exception_error("headlineActionsChange", e);
} }