#977296: Regions with _ such as with two column bricks would not save content.
authorEarl Miles
Sat, 8 Jan 2011 20:02:39 +0000 (20:02 +0000)
committerEarl Miles
Sat, 8 Jan 2011 20:02:39 +0000 (20:02 +0000)
CHANGELOG.txt
js/display_editor.js

index 1ec86a6..6d2dffe 100644 (file)
@@ -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.
index 376cffb..d7113d9 100644 (file)
@@ -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;