File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,16 @@ $(function(){
5555} ) ;
5656
5757
58- $ ( function ( ) {
59- if ( location . protocol . substr ( 0 , 5 ) === 'file:' ) {
60- $ ( 'a, input[type="submit"], form' ) . attr ( 'data-ajax' , false )
61- . filter ( 'a' )
62- . filter ( '[href="../"]' ) . attr ( 'href' , '../index.html' ) . end ( )
63- . filter ( '[href="../../"]' ) . attr ( 'href' , '../../index.html' ) . end ( )
64- . filter ( '[href="../../../"]' ) . attr ( 'href' , '../../../index.html' ) . end ( ) ;
65- }
66- } ) ;
58+ // Turn off AJAX for local file browsing
59+ if ( location . protocol . substr ( 0 , 5 ) === 'file:' ) {
60+ $ ( function ( ) {
61+ $ ( "a" )
62+ . filter ( "[href='../']" ) . attr ( "href" , "../index.html" ) . end ( )
63+ . filter ( "[href='../../']" ) . attr ( "href" , "../../index.html" ) . end ( )
64+ . filter ( "[href='../../../']" ) . attr ( "href" , "../../../index.html" ) ;
65+ } ) ;
66+ $ ( document ) . bind ( "mobileinit" , function ( ) {
67+ $ . mobile . ajaxEnabled = false ;
68+ } ) ;
69+ }
70+
You can’t perform that action at this time.
0 commit comments