Permalink
Browse files

BUGFIX Don't link to views in CMS tabs, use data-href instead to avoi…

…d jQuery.tabs() interfering with its own ajax load magic (specifically fixes a problem where admin/pages/edit/99 was detected as different from admin/pages/edit/99/?locale=de_DE)
  • Loading branch information...
chillu committed May 15, 2012
1 parent c185c73 commit b9cae47135209950ffc8def196d0104adbdc255c
Showing with 3 additions and 3 deletions.
  1. +3 −3 templates/Includes/CMSMain_Content.ss
@@ -10,17 +10,17 @@
<div class="cms-content-header-tabs">
<ul>
<li class="content-treeview<% if class == 'CMSPageEditController' %> ui-state-selected<% end_if %>">
- <a href="$LinkPageEdit" class="cms-panel-link" title="Form_EditForm">
+ <a href="#dummy" class="cms-panel-link" title="Form_EditForm" data-href="$LinkPageEdit">
<% _t('CMSMain.TabContent', 'Content') %>
</a>
</li>
<li class="content-listview<% if class == 'CMSPageSettingsController' %> ui-state-selected<% end_if %>">
- <a href="$LinkPageSettings" class="cms-panel-link" title="Form_EditForm">
+ <a href="#dummy" class="cms-panel-link" title="Form_EditForm" data-href="$LinkPageSettings">
<% _t('CMSMain.TabSettings', 'Settings') %>
</a>
</li>
<li class="content-listview<% if class == 'CMSPageHistoryController' %> ui-state-selected<% end_if %>">
- <a href="$LinkPageHistory" class="cms-panel-link" title="Form_EditForm">
+ <a href="#dummy" class="cms-panel-link" title="Form_EditForm" data-href="$LinkPageHistory">
<% _t('CMSMain.TabHistory', 'History') %>
</a>
</li>

0 comments on commit b9cae47

Please sign in to comment.