//fixed bug #PSCFV-55

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14889 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-04-26 08:00:06 +00:00
parent 192588b4b3
commit 26482b4f4d
2 changed files with 8 additions and 11 deletions
+7 -10
View File
@@ -4,7 +4,7 @@ var hookable_list = new Array();
var timer;
$(document).ready(function() {
// do some place for submit button
$('body').css('margin-bottom', '45px');
$('body').css('margin-top', '45px');
// this is the result box, which will "pop up" the succeed or fail result
$('#fancy').fancybox({
autoDimensions: true,
@@ -20,18 +20,15 @@ $(document).ready(function() {
$('#live_edit_feedback_str').html('');
// add liveToken in each link to navigate into the shop and keeping the liveedit mode
$('a').each(function() {
var href = $(this).attr('href');
var search = $(this).attr('search');
var href = this.href;
var search = this.search;
var hrefAdd = 'live_edit&liveToken=' + get('liveToken') + '&ad=' + get('ad') + '&id_shop=' + get('id_shop');
if (href != undefined && href != '#' && href.substr(0, baseDir.length) == baseDir) {
if (href != undefined && href != '#' && href.substr(0, baseDir.length) == baseDir)
{
if (search.length == 0)
{
$(this).attr('search', hrefAdd);
}
this.search = hrefAdd;
else
{
$(this).attr('search', search + '&' + hrefAdd);
}
this.search += '&' + hrefAdd;
}
});
// populate