Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F2113237
in-portal.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 18, 2:25 PM
Size
1 KB
Mime Type
text/plain
Expires
Fri, Nov 20, 2:25 PM (3 h, 32 m)
Engine
blob
Format
Raw Data
Handle
992709
Attached To
rINP In-Portal
in-portal.js
View Options
function
select_selected
(
list
,
selected_value
)
{
var
count
=
list
.
options
.
length
;
for
(
var
current
=
0
;
current
<
count
;
current
++
)
{
if
(
list
.
options
[
current
].
value
==
selected_value
)
{
list
.
options
[
current
].
selected
=
"1"
;
break
;
}
}
}
function
update_checkbox
(
cb
,
cb_hidden
)
{
cb_hidden
.
value
=
cb
.
checked
?
1
:
0
;
}
function
nop
()
{
//do nothing!
}
function
popup_submit
(
t
,
w
,
h
)
{
tmp_t
=
'popup_'
+
Math
.
round
(
Math
.
random
(
1
)
*
100000
);
norm_width
=
w
||
700
;
norm_height
=
w
||
450
;
screen_x
=
(
screen
.
availWidth
-
norm_width
)
/
2
;
screen_y
=
(
screen
.
availHeight
-
norm_height
)
/
2
;
wnd
=
window
.
open
(
''
,
tmp_t
,
'width='
+
norm_width
+
',height='
+
norm_height
+
',resizable=yes,left='
+
screen_x
+
',top='
+
screen_y
+
',scrollbars=yes'
);
wnd
.
focus
();
document
.
kernel_form
.
target
=
tmp_t
;
submit_kernel_form
();
}
function
inpConfirm
(
msg
)
{
return
confirm
(
RemoveTranslationLink
(
msg
)
);
}
function
show_props
(
obj
,
objName
)
{
var
result
=
""
;
for
(
var
i
in
obj
)
{
result
+=
objName
+
"."
+
i
+
" = "
+
obj
[
i
]
+
"\n"
;
}
return
result
;
}
Event Timeline
Log In to Comment