Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426416
ext.translate.selecttoinput.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
ext.translate.selecttoinput.js
View Options
$
(
function
()
{
var
appendFromSelect
=
function
(
selectid
,
targetid
)
{
'use strict'
;
var
select
=
document
.
getElementById
(
selectid
),
target
=
document
.
getElementById
(
targetid
);
if
(
!
target
||
!
select
)
{
return
;
}
var
atxt
=
select
.
options
[
select
.
selectedIndex
].
value
;
if
(
!
atxt
)
{
return
;
}
if
(
target
.
value
.
replace
(
/\s+/g
,
''
)
!==
''
)
{
atxt
=
', '
+
atxt
;
}
atxt
=
target
.
value
+
atxt
;
atxt
=
atxt
.
replace
(
/\bdefault\b[,\s]*/i
,
''
);
target
.
value
=
atxt
;
};
$
(
'.mw-translate-jssti'
).
on
(
'click'
,
function
()
{
var
sourceId
=
$
(
this
).
data
(
'translate-jssti-sourceid'
),
targetId
=
$
(
this
).
data
(
'translate-jssti-targetid'
);
appendFromSelect
(
sourceId
,
targetId
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 13:11 (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1c/ca/c60c942c35a0a141d398c33a64fb
Default Alt Text
ext.translate.selecttoinput.js (758 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment