Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894433
behavior-phui-tab-group.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
894 B
Referenced Files
None
Subscribers
None
behavior-phui-tab-group.js
View Options
/**
* @provides javelin-behavior-phui-tab-group
* @requires javelin-behavior
* javelin-stratcom
* javelin-dom
*/
JX
.
behavior
(
'phui-tab-group'
,
function
()
{
JX
.
Stratcom
.
listen
(
'click'
,
'phui-tab-view'
,
function
(
e
)
{
e
.
kill
();
var
map
=
e
.
getNodeData
(
'phui-tab-group-view'
).
tabMap
;
var
key
=
e
.
getNodeData
(
'phui-tab-view'
).
tabKey
;
var
group
=
e
.
getNode
(
'phui-tab-group-view'
);
var
tab
=
e
.
getNode
(
'phui-tab-view'
);
var
tabs
=
JX
.
DOM
.
scry
(
group
,
'li'
,
'phui-tab-view'
);
for
(
var
ii
=
0
;
ii
<
tabs
.
length
;
ii
++
)
{
JX
.
DOM
.
alterClass
(
tabs
[
ii
],
'phui-list-item-selected'
,
(
tabs
[
ii
]
==
tab
));
}
for
(
var
k
in
map
)
{
if
(
k
==
key
)
{
JX
.
DOM
.
show
(
JX
.
$
(
map
[
k
]));
}
else
{
JX
.
DOM
.
hide
(
JX
.
$
(
map
[
k
]));
}
}
});
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 19:52 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128176
Default Alt Text
behavior-phui-tab-group.js (894 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment