Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

default to the base href when dynamiceBase is disabled

  • Loading branch information...
commit 0cdd99ccc9db88afd1359af128c5cdda1442101e 1 parent 10f2acd
@johnbender johnbender authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 js/jquery.mobile.navigation.js
View
12 js/jquery.mobile.navigation.js
@@ -1191,9 +1191,8 @@ define( [
allowSamePageTransition: false
};
-/* Event Bindings - hashchange, submit, and click */
- function findClosestLink( ele )
- {
+ /* Event Bindings - hashchange, submit, and click */
+ function findClosestLink( ele ) {
while ( ele ) {
// Look for the closest element with a nodeName of "a".
// Note that we are checking if we have a valid nodeName
@@ -1211,17 +1210,16 @@ define( [
}
// The base URL for any given element depends on the page it resides in.
- function getClosestBaseUrl( ele )
- {
+ function getClosestBaseUrl( ele ) {
// Find the closest page and extract out its url.
var url = $( ele ).closest( ".ui-page" ).jqmData( "url" ),
base = documentBase.hrefNoHash;
- if ( !url || !path.isPath( url ) ) {
+ if ( !$.mobile.dynamicBaseEnabled || !url || !path.isPath( url ) ) {
url = base;
}
- return path.makeUrlAbsolute( url, base);
+ return path.makeUrlAbsolute( url, base );
}
//The following event bindings should be bound after mobileinit has been triggered
Please sign in to comment.
Something went wrong with that request. Please try again.