Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893141
behavior-high-security-warning.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
982 B
Referenced Files
None
Subscribers
None
behavior-high-security-warning.js
View Options
/**
* @provides javelin-behavior-high-security-warning
* @requires javelin-behavior
* javelin-uri
* phabricator-notification
*/
JX
.
behavior
(
'high-security-warning'
,
function
(
config
,
statics
)
{
function
show_warning
(
message
,
uri
)
{
var
n
=
new
JX
.
Notification
()
.
setContent
(
message
)
.
setDuration
(
0
)
.
alterClassName
(
'jx-notification-security'
,
true
);
n
.
listen
(
'activate'
,
function
()
{
statics
.
showing
=
false
;
JX
.
$U
(
uri
).
go
();
});
n
.
show
();
statics
.
showing
=
true
;
}
if
(
statics
.
showing
)
{
return
;
}
if
(
config
.
show
)
{
show_warning
(
config
.
message
,
config
.
uri
);
}
JX
.
Stratcom
.
listen
(
'quicksand-redraw'
,
null
,
function
(
e
)
{
var
new_data
=
e
.
getData
().
newResponse
.
hisecWarningConfig
;
if
(
!
new_data
.
fromServer
||
!
new_data
.
show
||
statics
.
showing
)
{
return
;
}
show_warning
(
new_data
.
message
,
new_data
.
uri
);
});
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 17:55 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127182
Default Alt Text
behavior-high-security-warning.js (982 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment