Skip to content

Commit

Permalink
Merge pull request django-cms#3059 from johnraz/Issue3038-view-on-sit…
Browse files Browse the repository at this point in the history
…e-in-modal

Fix django-cms#3038, append target _top to view on site link in modal
  • Loading branch information
digi604 committed Apr 15, 2014
2 parents f884372 + 1512a30 commit c26e06c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cms/static/cms/js/modules/cms.modal.js
Expand Up @@ -528,6 +528,9 @@ $(document).ready(function () {
// after iframe is loaded append css
contents.find('head').append($('<link rel="stylesheet" type="text/css" href="' + that.config.urls.static + that.options.urls.css_modal + '" />'));

// adding django hacks
contents.find('.viewsitelink').attr('target', '_top');

// set modal buttons
that._setButtons($(this));

Expand Down

0 comments on commit c26e06c

Please sign in to comment.