diff options
Diffstat (limited to 'MLEB/Translate/utils/JsSelectToInput.php')
-rw-r--r-- | MLEB/Translate/utils/JsSelectToInput.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MLEB/Translate/utils/JsSelectToInput.php b/MLEB/Translate/utils/JsSelectToInput.php index 24f30bc1..83d5cc65 100644 --- a/MLEB/Translate/utils/JsSelectToInput.php +++ b/MLEB/Translate/utils/JsSelectToInput.php @@ -100,7 +100,9 @@ class JsSelectToInput { $html = Xml::element( 'input', [ 'type' => 'button', 'value' => wfMessage( $msg )->text(), - 'onclick' => Xml::encodeJsCall( 'appendFromSelect', [ $source, $target ] ) + 'class' => 'mw-translate-jssti', + 'data-translate-jssti-sourceid' => $source, + 'data-translate-jssti-targetid' => $target ] ); return $html; |