// Fix translation pack fetching in AdminLanguages form

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13938 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-03-07 16:35:29 +00:00
parent 93a7ded19e
commit c899a277cc
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);