mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MERGE tabs url abs
This commit is contained in:
parent
f26951c63d
commit
3ee4459476
@ -638,7 +638,11 @@ jQuery.noConflict();
|
|||||||
ajaxOptions: {
|
ajaxOptions: {
|
||||||
// Overwrite ajax loading to use CMS logic instead
|
// Overwrite ajax loading to use CMS logic instead
|
||||||
beforeSend: function(xhr, settings) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user