Fix: update language not working from popup
parent
6c8f896c1b
commit
cb6a5222e3
Binary file not shown.
|
@ -1731,6 +1731,8 @@ function installLanguage(languageURL,language,popup=false) {
|
|||
}
|
||||
|
||||
function updateLanguage(language) {
|
||||
$(".tooltipstered").tooltipster("hide");
|
||||
|
||||
disableSearch();
|
||||
openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=update&arg2='+language,"<?tr('Update Language Pack')?>",600,900,true,"refreshDisplay");
|
||||
}
|
||||
|
|
|
@ -642,7 +642,7 @@ function getPopupDescriptionSkin($appNumber) {
|
|||
}
|
||||
if ( file_exists("/var/log/plugins/lang-$countryCode.xml") ) {
|
||||
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" ) {
|
||||
|
|
Loading…
Reference in New Issue