root / trunk / web / dojo / dijit / _DialogMixin.js @ 11
History | View | Annotate | Download (978 Bytes)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
4 | see: http://dojotoolkit.org/license for details
|
||
5 | */
|
||
6 | |||
7 | |||
8 | if(!dojo._hasResource["dijit._DialogMixin"]){ |
||
9 | dojo._hasResource["dijit._DialogMixin"]=true; |
||
10 | dojo.provide("dijit._DialogMixin");
|
||
11 | dojo.require("dijit._Widget");
|
||
12 | dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_1){ |
||
13 | },onCancel:function(){ |
||
14 | },onExecute:function(){ |
||
15 | },_onSubmit:function(){ |
||
16 | this.onExecute();
|
||
17 | this.execute(this.get("value")); |
||
18 | },_getFocusItems:function(_2){ |
||
19 | var _3=dijit._getTabNavigable(dojo.byId(_2));
|
||
20 | this._firstFocusItem=_3.lowest||_3.first||_2;
|
||
21 | this._lastFocusItem=_3.last||_3.highest||this._firstFocusItem; |
||
22 | if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){ |
||
23 | dojo.attr(_2,"tabIndex","0"); |
||
24 | this._firstFocusItem=_2;
|
||
25 | } |
||
26 | }}); |
||
27 | } |