Created
December 8, 2011 11:32
-
-
Save jodosha/1446771 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function() { | |
function baseUri() { | |
return $('meta[name="base-uri"]').attr('content'); | |
} | |
jQuery.ajaxSetup({ | |
'beforeSend': function(xhr, settings) { | |
settings.url = baseUri() + settings.url; | |
return true; | |
} | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ... --> | |
<meta name="base-uri" content="/epts"> | |
<!-- ... --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@vjt @amedeo check this out!