Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F885364
_EnableMixin.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
_EnableMixin.js
View Options
/*
Copyright (c) 2004-2009, 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
[
"dojox.form.manager._EnableMixin"
]){
dojo
.
_hasResource
[
"dojox.form.manager._EnableMixin"
]
=
true
;
dojo
.
provide
(
"dojox.form.manager._EnableMixin"
);
dojo
.
require
(
"dojox.form.manager._Mixin"
);
(
function
(){
var
fm
=
dojox
.
form
.
manager
,
aa
=
fm
.
actionAdapter
,
ia
=
fm
.
inspectorAdapter
;
dojo
.
declare
(
"dojox.form.manager._EnableMixin"
,
null
,{
gatherEnableState
:
function
(
_1
){
var
_2
=
this
.
inspectFormWidgets
(
ia
(
function
(
_3
,
_4
){
return
!
_4
.
attr
(
"disabled"
);
}),
_1
);
if
(
this
.
inspectFormNodes
){
dojo
.
mixin
(
_2
,
this
.
inspectFormNodes
(
ia
(
function
(
_5
,
_6
){
return
!
dojo
.
attr
(
_6
,
"disabled"
);
}),
_1
));
}
return
_2
;
},
enable
:
function
(
_7
,
_8
){
if
(
arguments
.
length
<
2
||
_8
===
undefined
){
_8
=
true
;
}
this
.
inspectFormWidgets
(
aa
(
function
(
_9
,
_a
,
_b
){
_a
.
attr
(
"disabled"
,
!
_b
);
}),
_7
,
_8
);
if
(
this
.
inspectFormNodes
){
this
.
inspectFormNodes
(
aa
(
function
(
_c
,
_d
,
_e
){
dojo
.
attr
(
_d
,
"disabled"
,
!
_e
);
}),
_7
,
_8
);
}
return
this
;
},
disable
:
function
(
_f
){
var
_10
=
this
.
gatherEnableState
();
this
.
enable
(
_f
,
false
);
return
_10
;
}});
})();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 6, 15:23 (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26772
Default Alt Text
_EnableMixin.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment