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\"
onchange=\"headlineActionsChange(this)\">";
print "<option value=\"\">".__('Actions...')."</option>";
print "<option value=\"false\">".__('Actions...')."</option>";
# print "<optgroup label=\"".__("Selection toggle:")."\">";

View 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);
}