[-] 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
+2 -2
View File
@@ -73,10 +73,10 @@
{if !isset($logged_on_addons)}
<!--start addons login-->
<div class="filter-module" id="addons_login_div">
<p>{l s='You have already got an Add On customer account'}</p>
<p>{l s='You have a PrestaShop Addons account ?'}</p>
<form id="addons_login_form" method="post">
<label>{l s='Login Addons'} :</label> <input type="text" value="" id="username_addons" autocomplete="off" class="ac_input">
<label>{l s= 'Password Addons'} :</label> <input type="text" value="" id="password_addons" autocomplete="off" class="ac_input">
<label>{l s= 'Password Addons'} :</label> <input type="password" value="" id="password_addons" autocomplete="off" class="ac_input">
<input type="submit" class="button" id="addons_login_button" value="{l s='Log in'}">
<span id="addons_loading" style="color:red"></span>
</form>
+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);