summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--js/display_editor.js4
2 files changed, 2 insertions, 3 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 1ec86a6..6d2dffe 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -24,3 +24,4 @@ Fix the naked style to support content that needs to be rendered.
#980870 by das-peter: CSS handling during caching broken.
#970076: Remove old hook_update functions.
#978768 by linclark: Fix notice with panel fields.
+#977296: Regions with _ such as with two column bricks would not save content.
diff --git a/js/display_editor.js b/js/display_editor.js
index 376cffb..d7113d9 100644
--- a/js/display_editor.js
+++ b/js/display_editor.js
@@ -220,9 +220,7 @@ Drupal.Panels.Draggable = {
val += this.id.replace(draggable.draggableId, '');
});
- // Note: _ is replaced with - because Drupal automatically does this
- // with form ids.
- var region = this.id.replace(/_/g, '-').replace('panel-pane-', '');
+ var region = this.id.replace('panel-pane-', '');
$('input[name="panel[pane][' + region + ']"]').val(val);
});
return false;