mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
add dijit/dojo stuff; initial ui mockup
This commit is contained in:
27
lib/dijit/_DialogMixin.js
Normal file
27
lib/dijit/_DialogMixin.js
Normal file
@@ -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;
|
||||
}
|
||||
}});
|
||||
}
|
||||
Reference in New Issue
Block a user