From 1065c8e54f330d5a2b71d40fe2b6bed735282a52 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Thu, 10 Nov 2011 15:10:40 +0000 Subject: [PATCH] // fixed toolbar git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10043 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/template/footer.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/admin-dev/themes/template/footer.tpl b/admin-dev/themes/template/footer.tpl index 0b0ad5d3f..5f6a6f3d1 100644 --- a/admin-dev/themes/template/footer.tpl +++ b/admin-dev/themes/template/footer.tpl @@ -59,7 +59,7 @@ var message = $('.toolbarHead'); var view = $(window); - // bind only if message exists. placeholder will be its parent + // bind only if message exists. placeholder will be its parent view.bind("scroll resize", function(e) { message.each(function(el){ @@ -72,8 +72,7 @@ placeholderTop = placeholder.offset().top; var viewTop = view.scrollTop() + 15; -// POUET -// CECI EST UN TEST + if ((viewTop > placeholderTop) && !$(this).hasClass("fix-toolbar")) { $(this).css('width', $(this).width()); @@ -81,7 +80,6 @@ } else if ( (viewTop <= placeholderTop) && $(this).hasClass("fix-toolbar")) { - //$(this).css('width', 'auto'); $(this).removeClass("fix-toolbar"); } }