Fix: update language not working from popup

pull/11/head
Squidly271 2021-02-27 09:58:29 -05:00
parent 6c8f896c1b
commit cb6a5222e3
3 changed files with 3 additions and 1 deletions

View File

@ -1731,6 +1731,8 @@ function installLanguage(languageURL,language,popup=false) {
} }
function updateLanguage(language) { function updateLanguage(language) {
$(".tooltipstered").tooltipster("hide");
disableSearch(); disableSearch();
openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=update&arg2='+language,"<?tr('Update Language Pack')?>",600,900,true,"refreshDisplay"); openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=update&arg2='+language,"<?tr('Update Language Pack')?>",600,900,true,"refreshDisplay");
} }

View File

@ -642,7 +642,7 @@ function getPopupDescriptionSkin($appNumber) {
} }
if ( file_exists("/var/log/plugins/lang-$countryCode.xml") ) { if ( file_exists("/var/log/plugins/lang-$countryCode.xml") ) {
if ( languageCheck($template) ) { if ( languageCheck($template) ) {
$installLine .= "<div><a class='ca_tooltip appIconsPopUp ca_fa-update languageInstall' data-languageonclick=installPlugin('$countryCode');> {$template['UpdateLanguage']}</a></div>"; $installLine .= "<div><a class='ca_tooltip appIconsPopUp ca_fa-update languageInstall' onclick=updateLanguage('$countryCode');> {$template['UpdateLanguage']}</a></div>";
} }
} }
if ( $countryCode !== "en_US" ) { if ( $countryCode !== "en_US" ) {