[-] BO : AdminModules fix on Addons Connection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user