diff options
author | Andrew Dolgov <[email protected]> | 2010-11-15 10:39:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-15 10:39:52 +0300 |
commit | 2f01fe57a8d37767827d6db42850aef86a767c53 (patch) | |
tree | 516a95ffce2fc2435aed8d9976e444dbcba7dce3 /lib/dijit/_DialogMixin.js | |
parent | 951906dcecb1d3c7bcf751976a03e0c196ca6db0 (diff) |
add dijit/dojo stuff; initial ui mockup
Diffstat (limited to 'lib/dijit/_DialogMixin.js')
-rw-r--r-- | lib/dijit/_DialogMixin.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/dijit/_DialogMixin.js b/lib/dijit/_DialogMixin.js new file mode 100644 index 000000000..f67e8d04c --- /dev/null +++ b/lib/dijit/_DialogMixin.js @@ -0,0 +1,27 @@ +/* + Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +if(!dojo._hasResource["dijit._DialogMixin"]){ +dojo._hasResource["dijit._DialogMixin"]=true; +dojo.provide("dijit._DialogMixin"); +dojo.require("dijit._Widget"); +dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_1){ +},onCancel:function(){ +},onExecute:function(){ +},_onSubmit:function(){ +this.onExecute(); +this.execute(this.get("value")); +},_getFocusItems:function(_2){ +var _3=dijit._getTabNavigable(dojo.byId(_2)); +this._firstFocusItem=_3.lowest||_3.first||_2; +this._lastFocusItem=_3.last||_3.highest||this._firstFocusItem; +if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){ +dojo.attr(_2,"tabIndex","0"); +this._firstFocusItem=_2; +} +}}); +} |