Skip to content

Commit

Permalink
auto-detect django-suit instead of using explicit setting
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaoming authored and yakky committed Jun 28, 2014
1 parent 5250e53 commit 8af0811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/static/cms/js/modules/cms.modal.js
Expand Up @@ -20,7 +20,6 @@ $(document).ready(function () {
'urls': {
'css_modal': 'cms/css/cms.toolbar.modal.css'
},
'has_django_suit': false
},

initialize: function (options) {
Expand Down Expand Up @@ -418,9 +417,10 @@ $(document).ready(function () {
},

_setButtons: function (iframe) {
var django_suit = iframe.contents().find('.suit-columns').length > 0;
var that = this;
var row;
if (!this.options.has_django_suit) {
if (!django_suit) {
row = iframe.contents().find('.submit-row:eq(0)');
} else {
row = iframe.contents().find('.save-box:eq(0)');
Expand Down

0 comments on commit 8af0811

Please sign in to comment.