summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2013-02-07 22:35:02 (GMT)
committer Earl Miles2013-02-07 22:35:02 (GMT)
commitbeb3c59296c7bec860d015c40e592fc944614529 (patch)
treefcbb044269f340389a00e223d76ea32cafb2003a
parent535ac5f2afb6b15e94cde54dccdcc1fa713a4ac4 (diff)
Issue #1777264: Save as default not working in Panelizer.
-rw-r--r--includes/display-edit.inc1
-rw-r--r--panels_ipe/js/panels_ipe.js3
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/display-edit.inc b/includes/display-edit.inc
index dc6d1b9..79163b5 100644
--- a/includes/display-edit.inc
+++ b/includes/display-edit.inc
@@ -147,6 +147,7 @@ function panels_edit_display_form_validate($form, &$form_state) {
* the display.
*/
function panels_edit_display_form_submit($form, &$form_state) {
+ error_log(var_export($form_state['values']['panel']['pane'], 1));
$display = &$form_state['display'];
$old_content = $display->content;
diff --git a/panels_ipe/js/panels_ipe.js b/panels_ipe/js/panels_ipe.js
index 5936abb..40b0e2c 100644
--- a/panels_ipe/js/panels_ipe.js
+++ b/panels_ipe/js/panels_ipe.js
@@ -392,7 +392,6 @@ $(function() {
*/
Drupal.ajax.prototype.ipeReplacedEventResponse = Drupal.ajax.prototype.eventResponse;
Drupal.ajax.prototype.eventResponse = function (element, event) {
- console.log('event response');
if (element.ipeCancelThis) {
element.ipeCancelThis = null;
return false;
@@ -430,7 +429,7 @@ $(function() {
Drupal.ajax.prototype.ipeReplacedBeforeSerialize = Drupal.ajax.prototype.beforeSerialize;
Drupal.ajax.prototype.beforeSerialize = function (element_settings, options) {
- if ($(this.element).attr('id') == 'panels-ipe-save') {
+ if ($(this.element).hasClass('panels-ipe-save')) {
Drupal.PanelsIPE.editors[this.element_settings.ipe_cache_key].saveEditing();
};
return this.ipeReplacedBeforeSerialize(element_settings, options);