这是我的菜单栏:
<div class="claro" id="menuDiv21" onclick="setWidgetproperty(this.id,'x','navMenu21');" onmousedown="setMenuBarProperty('navMenu21');" onmouseup="setDocStyle(this.id)" style="border:1px dotted white; left: auto; position: absolute; top: 620px;">
<div dojotype="dijit.MenuBar" id="navMenu21" style="font-size:11pt;" title="MenuBar">
<div dojotype="dijit.MenuBarItem" id="SearchMenu21" onclick="getWorklistManagerSearch('htmlTable2');setMenuId(this.id);" style="font-size:11pt;" title="menuBarItem">
<img class="images" id="SearchMenu21" name="search5.png" onclick="setImgProperty(this.id)" src="images/uploads/search.png" style="height:20px; width:20px;">
Search
</div>
<div dojotype="dijit.MenuBarItem" id="TaskMenu21" onclick="setMenuId(this.id);" style="font-size:11pt;" title="menuBarItem">
<img class="images" id="TaskMenu21" name="task6.png" onclick="setImgProperty(this.id)" src="images/uploads/task.png" style="height:20px; width:20px;">
Task
</div>
<div dojotype="dijit.MenuBarItem" id="AssignMenu21" onclick="javascript:popupwindow('assign.jsp', 'Assign', 900, 550)" style="font-size:11pt;" title="menuBarItem">
<img class="images" id="AssignMenu21" name="assign7.png" onclick="setImgProperty(this.id)" src="images/uploads/assign.png" style="height:20px; width:20px;">
Assign
</div>
<div dojotype="dijit.MenuBarItem" id="ModifyMenu21" onclick="getWorklistManagerModify();" style="font-size:11pt;" title="menuBarItem">
<img class="images" id="ModifyMenu21" name="modify8.jpg" onclick="setImgProperty(this.id)" src="images/uploads/modify.jpg" style="height:20px; width:20px;">
Modify
</div>
<div dojotype="dijit.MenuBarItem" id="OrderMenu21" onclick="setMenuId(this.id);" style="font-size:11pt;" title="menuBarItem">
<img class="images" id="OrderMenu21" name="order9.jpg" onclick="setImgProperty(this.id)" src="images/uploads/order.jpg" style="height:20px; width:20px;">
Order
</div>
<div dojotype="dijit.MenuBarItem" id="HistoryMenu21" onclick="getWorklistManagerHistory();" style="font-size:11pt;" title="menuBarItem">
<img class="images" id="HistoryMenu21" name="history10.png" onclick="setImgProperty(this.id)" src="images/uploads/history.png" style="height:20px; width:20px;">
History
</div>
</div>
</div>
答案 0 :(得分:0)
如果您的菜单项打开了dijit / Dialog,则对话框的默认行为是在关闭对话框时重新聚焦启动它的项目。
此行为由名为refocus
的Dialog上的属性驱动,默认为true
。
如果您和创建对话框时传入{refocus:false}
,行为将被关闭。