Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35860114
DropdownMenuItem.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
612 B
Subscribers
None
DropdownMenuItem.js
View Options
/**
* @requires javelin-install
* javelin-dom
* @provides phabricator-menu-item
* @javelin
*/
JX
.
install
(
'PhabricatorMenuItem'
,
{
construct
:
function
(
name
,
action
)
{
this
.
_name
=
name
;
this
.
_action
=
action
;
},
members
:
{
_name
:
null
,
_action
:
null
,
render
:
function
()
{
if
(
this
.
getDisabled
())
{
return
JX
.
$N
(
'span'
,
this
.
_name
);
}
else
{
return
JX
.
$N
(
'a'
,
{
href
:
'#'
,
meta
:
{
item
:
this
}
},
this
.
_name
);
}
},
select
:
function
()
{
this
.
_action
();
}
},
properties
:
{
disabled
:
false
}
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 15, 3:45 PM (11 h, 46 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/87/e0c2f851e777285e09a493c4ff6f
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment