// Fix translation pack fetching in AdminLanguages form

This commit is contained in:
tDidierjean
2012-03-07 16:35:29 +00:00
parent 65d051b5df
commit 72a5260a02
4 changed files with 16 additions and 8 deletions
+5 -1
View File
@@ -27,6 +27,8 @@
function checkLangPack(token){
if ($('#iso_code').val().length == 2)
{
$('#lang_pack_loading').show();
$('#lang_pack_msg').hide();
doAdminAjax(
{
controller:'AdminLanguages',
@@ -38,6 +40,7 @@ function checkLangPack(token){
},
function(ret)
{
$('#lang_pack_loading').hide();
ret = $.parseJSON(ret);
if( ret.status == 'ok')
{
@@ -46,7 +49,8 @@ function checkLangPack(token){
+'<br />' + langPackVersion + ' ' + content['version']
+ ' <a href="http://www.prestashop.com/download/lang_packs/gzip/' + content['version'] + '/'
+ $('#iso_code').val()+'.gzip" target="_blank" class="link">'+download+'</a><br />' + langPackInfo;
showSuccessMessage(message);
$('#lang_pack_msg').html(message);
$('#lang_pack_msg').show();
}
else
showErrorMessage(ret.error);