We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1a9f7 commit 6a7aa4aCopy full SHA for 6a7aa4a
src/GTranslator.php
@@ -620,12 +620,8 @@ public function addScript(){
620
Init:function(){
621
GTranslator.GoogleScript();
622
if(null!=GTranslator.Current()){
623
- var formObj = document.getElementsByClassName('php-language-select');
624
- for(let i = 0, len = formObj.length; i < len; i++){
625
- if(formObj[i].value == GTranslator.Current()){
626
- formObj.options[i].selected = true;
627
- }
628
+ var selectElement = document.getElementsByClassName('php-language-select')[0];
+ selectElement.value = GTranslator.Current();
629
}
630
631
};";
0 commit comments