Permalink
Browse files

Fix for Issue 1578 - Can't load file:// pages

This was caused by this checkin:

4b4ee54

The change caused the base tag to be reset to file:// (literally with no path).

All that was missing was a small tweak to base.reset() to use the new initialPath variable instead of docBase.
  • Loading branch information...
1 parent 4b4ee54 commit e775f5e83a2b769479baeacc79c6912b381f5950 @jblas jblas committed May 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.navigation.js
View
4 js/jquery.mobile.navigation.js
@@ -240,7 +240,7 @@
//set the generated BASE element's href attribute to a new page's base path
reset: function() {
- base.element.attr( "href", docBase );
+ base.element.attr( "href", initialPath );
}
} : undefined;
@@ -866,4 +866,4 @@
}
});
-})( jQuery );
+})( jQuery );

0 comments on commit e775f5e

Please sign in to comment.