Dotclear

Changeset 3332:8d816c8da636


Ignore:
Timestamp:
09/01/16 08:26:55 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Prevents changing current URL (hash) on ScrollTop? click

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r3294 r3332  
    604604        }); 
    605605 
    606         $('#gototop').click(function() { 
     606        $('#gototop').click(function(e) { 
    607607            $('body,html').animate({scrollTop:0},800); 
     608            e.preventDefault(); 
    608609        }); 
    609610}); 
  • themes/berlin/tpl/user_footer.html

    r2786 r3332  
    3333            }); 
    3434 
    35             $('#gotop').click(function() { 
     35            $('#gotop').click(function(e) { 
    3636                $('body,html').animate({scrollTop:0},800); 
     37                e.preventDefault(); 
    3738            }); 
    3839}); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map