File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2525 } else if ( typeof f . toPage !== "object" && hash !== "" && $ . mobile . path . parseUrl ( f . originalHref ) . hash !== "" && ! $ ( hash ) . hasClass ( "ui-page" ) && $ ( hash ) . attr ( 'data-role' ) !== "page" && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-panel" ) && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-popup" ) ) {
2626 $ ( ele ) . attr ( href , f . originalHref ) ;
2727 $ . mobile . document . one ( "pagechange" , function ( ) {
28- hash = $ . mobile . path . parseUrl ( f . originalHref ) . hash ;
29- var pos = $ ( ".ui-page-active " + hash ) . offset ( ) . top ;
30- $ . mobile . silentScroll ( pos ) ;
28+ if ( typeof hash !== "undefined" && hash . search ( "/" ) === - 1 && hash !== "" && $ ( hash ) . length > 0 && ! $ ( hash ) . hasClass ( "ui-page" ) && $ ( hash ) . data ( 'role' ) !== "page" && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-panel" ) && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-popup" ) ) {
29+ hash = $ . mobile . path . parseUrl ( f . originalHref ) . hash ;
30+ var pos = $ ( ".ui-page-active " + hash ) . offset ( ) . top ;
31+ $ . mobile . silentScroll ( pos ) ;
32+ }
3133 } ) ;
3234 }
3335 } ) ;
3436 $ ( document ) . on ( "mobileinit" , function ( ) {
3537 hash = window . location . hash ;
3638 $ . mobile . document . one ( "pageshow" , function ( ) {
37- if ( hash !== "" && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-page" ) && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-panel" ) && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-popup" ) && ! $ ( hash ) . is ( "body" ) ) {
39+ if ( hash !== "" && $ ( hash ) . attr ( 'data-role' ) !== "page" && ! $ ( hash ) . hasClass ( "ui-page" ) && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-panel" ) && ! $ ( ".ui-page-active " + hash ) . hasClass ( "ui-popup" ) && ! $ ( hash ) . is ( "body" ) ) {
3840 var pos = $ ( ".ui-page-active " + hash ) . offset ( ) . top ;
3941 setTimeout ( function ( ) {
4042 $ . mobile . silentScroll ( pos ) ;
You can’t perform that action at this time.
0 commit comments