File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,18 +91,19 @@ $(".masthead-nav li").click(function () {
9191 $ ( this ) . addClass ( "active" ) ;
9292} ) ;
9393
94- $ ( ".ui-home" ) . click ( function ( e ) {
94+ // prevent empty link change hash
95+ $ ( 'a[href="#"]' ) . click ( function ( e ) {
9596 e . preventDefault ( ) ;
96- e . stopPropagation ( ) ;
97+ } ) ;
98+
99+ $ ( ".ui-home" ) . click ( function ( e ) {
97100 if ( ! $ ( "#home" ) . is ( ':visible' ) ) {
98101 $ ( ".section:visible" ) . hide ( ) ;
99102 $ ( "#home" ) . fadeIn ( ) ;
100103 }
101104} ) ;
102105
103106$ ( ".ui-history" ) . click ( function ( e ) {
104- e . preventDefault ( ) ;
105- e . stopPropagation ( ) ;
106107 if ( ! $ ( "#history" ) . is ( ':visible' ) ) {
107108 $ ( ".section:visible" ) . hide ( ) ;
108109 $ ( "#history" ) . fadeIn ( ) ;
Original file line number Diff line number Diff line change @@ -1754,6 +1754,10 @@ ui.toolbar.uploadImage.bind('change', function (e) {
17541754ui . toc . dropdown . click ( function ( e ) {
17551755 e . stopPropagation ( ) ;
17561756} ) ;
1757+ // prevent empty link change hash
1758+ $ ( 'a[href="#"]' ) . click ( function ( e ) {
1759+ e . preventDefault ( ) ;
1760+ } ) ;
17571761
17581762//modal actions
17591763var revisions = [ ] ;
You can’t perform that action at this time.
0 commit comments