Skip to content

Commit a65425c

Browse files
committed
fix(markup): rename main to feincmsmain ID so it doesn't collide with django3.1 admin panel markup
1 parent 517b4b6 commit a65425c

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

feincms/static/feincms/item_editor.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
border-color: #79aec8;
1717
}
1818

19-
#main {
19+
#feincmsmain {
2020
clear:both;
2121
padding: 10px 10px 10px 10px;
2222
border: 1px solid #eee;
@@ -90,7 +90,7 @@ select {
9090
max-width: 580px;
9191
}
9292

93-
#main_wrapper {
93+
#feincmsmain_wrapper {
9494
margin: 10px 0 30px 0;
9595
}
9696

@@ -245,7 +245,7 @@ div.order-machine div.inline-related > h3{
245245
/* django suit hacks */
246246
/*********************/
247247

248-
#suit-center #main {
248+
#suit-center #feincmsmain {
249249
clear:none;
250250
}
251251

feincms/static/feincms/item_editor.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (!Array.prototype.indexOf) {
5252

5353
SELECTS = {};
5454
function save_content_type_selects() {
55-
$('#main>.panel').each(function() {
55+
$('#feincmsmain>.panel').each(function() {
5656
SELECTS[this.id.replace(/_body$/, '')] = $("select[name=order-machine-add-select]", this).clone().removeAttr("name");
5757
});
5858
}
@@ -259,7 +259,7 @@ if (!Array.prototype.indexOf) {
259259
}
260260

261261
function init_content_type_buttons() {
262-
$('#main > .panel').each(function() {
262+
$('#feincmsmain > .panel').each(function() {
263263
var $select = $('select[name=order-machine-add-select]', this),
264264
to_remove = [];
265265

@@ -358,7 +358,7 @@ if (!Array.prototype.indexOf) {
358358
$(document).ready(function($){
359359
hide_form_rows_with_hidden_widgets();
360360

361-
create_tabbed('#main_wrapper', '#main', function(tab_str){
361+
create_tabbed('#feincmsmain_wrapper', '#feincmsmain', function(tab_str){
362362
ACTIVE_REGION = REGION_MAP.indexOf(tab_str);
363363
// make it possible to open current tab on page reload
364364
window.location.replace('#tab_'+tab_str);
@@ -564,7 +564,7 @@ if (!Array.prototype.indexOf) {
564564
});
565565

566566

567-
var errors = $('#main div.errors');
567+
var errors = $('#feincmsmain div.errors');
568568

569569
if(errors.length) {
570570
var id = errors.parents('fieldset[id$=_body], div[id$=_body]').attr('id');
@@ -579,7 +579,7 @@ if (!Array.prototype.indexOf) {
579579
}
580580
}
581581

582-
$('#main_wrapper>div.navi_tab:first-child').trigger('click');
582+
$('#feincmsmain_wrapper>div.navi_tab:first-child').trigger('click');
583583
}
584584
});
585585

feincms/templates/admin/feincms/content_editor.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% load i18n %}
22
{% load feincms_admin_tags %}
3-
<div id="main_wrapper">
3+
<div id="feincmsmain_wrapper">
44
{% for region in original.template.regions %}
55
<div class="navi_tab" id="{{ region.key }}_tab">{{ region.title }}</div>
66
{% endfor %}
7-
<div id="main">
7+
<div id="feincmsmain">
88
{% for region in original.template.regions %}
99
<div id="{{ region.key }}_body" class="panel">
1010
<div class="empty-machine-msg">

feincms/templates/admin/feincms/item_editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</div>
5252
<script type="text/javascript">
5353
feincms.jQuery(function($){
54-
$("h2:contains('{{ FEINCMS_CONTENT_FIELDSET_NAME }}')").parent().replaceWith($("#main_wrapper"));
54+
$("h2:contains('{{ FEINCMS_CONTENT_FIELDSET_NAME }}')").parent().replaceWith($("#feincmsmain_wrapper"));
5555
});
5656
</script>
5757
{% endblock %}

0 commit comments

Comments
 (0)