[-] BO : AdminModules fix on Addons Connection

This commit is contained in:
fSerny
2011-11-23 11:31:39 +00:00
parent 8a16f94b24
commit 6f0ee81a6d
4 changed files with 86 additions and 65 deletions
+8 -1
View File
@@ -37,6 +37,12 @@
var by = '{l s='by'}';
var errorLogin = '{l s='Could not login to Addons'}';
{if isset($smarty.get.anchor)}
$('document').ready( function() {
$.scrollTo('#{$smarty.get.anchor|htmlentities}', 1200, {literal}{offset: -100}{/literal});
});
{/if}
{literal}
function getPrestaStore(){if(getE("prestastore").style.display!='block')return;$.post(dirNameCurrentIndex+"/ajax.php",{page:"prestastore"},function(a){getE("prestastore-content").innerHTML=a;})}
function truncate_author(author){return ((author.length > 20) ? author.substring(0, 20)+"..." : author);}
@@ -177,10 +183,11 @@
success : function(data)
{
// res.status = cache or refresh
if (data != 'KO')
if (data == 'OK')
{
$('#addons_loading').html('');
$('#addons_login_div').fadeOut();
window.location.href = window.location.href;
}
else
$('#addons_loading').html(errorLogin);