// fixed toolbar

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10043 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-11-10 15:10:40 +00:00
parent 30159bb893
commit 1065c8e54f
+2 -4
View File
@@ -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");
}
}