MERGE tabs url abs

This commit is contained in:
Ingo Schommer 2012-04-18 16:54:57 +02:00
parent f26951c63d
commit 3ee4459476

View File

@ -638,7 +638,11 @@ jQuery.noConflict();
ajaxOptions: {
// Overwrite ajax loading to use CMS logic instead
beforeSend: function(xhr, settings) {
$('.cms-container').entwine('ss').loadPanel(settings.url);
var makeAbs = $.path.makeUrlAbsolute,
baseUrl = $('base').attr('href'),
isSame = (makeAbs(settings.url, baseUrl) == makeAbs(document.location.href));
if(!isSame) $('.cms-container').entwine('ss').loadPanel(settings.url);
return false;
}
},