Flagging next-match widget container as default-focus object

This commit is contained in:
Andreas Stöckel 2011-06-15 20:50:24 +00:00
parent d90a2c1ade
commit 509ff8aa53
2 changed files with 2 additions and 1 deletions

View File

@ -888,6 +888,7 @@ class nextmatch_widget
// Create anonymous object and action container for this etemplate
var actionCntr = actionManager.addAction("actionManager", "'.$template_name.'");
var objectCntr = objectManager.addObject(new egwActionObjectManager("'.$template_name.'", actionCntr));
objectCntr.flags = objectCntr.flags | EGW_AO_FLAG_DEFAULT_FOCUS;
actionCntr.updateActions('.json_encode($enc_actions).');
actionCntr.setDefaultExecute("javaScript:nm_action");

View File

@ -63,7 +63,7 @@ function nextmatchRowAOI(_node, _selectMode)
break;
case EGW_SELECTMODE_TOGGLE:
aoi.updateState(EGW_AO_STATE_SELECTED, !selected,
egwSetBit(EGW_AO_SHIFT_STATE_MULTI, state, true));
egwSetBit(state, EGW_AO_SHIFT_STATE_MULTI, true));
break;
}
}