When minipanels is enabled, i get the following code displayed on the page while trying to add content to an existing/new panel:
[ { "command": "settings", "argument": { "basePath": ....
Keeps going and going, I doubt its relevant.

Anyways, I also get the javascript error:

Error: settings is undefined
Source File: http://host/sites/default/files/js/js_9710440180d2ff02443eae9f3f9de5bc.js
Line: 811

Which reffers to this line:
settings['hide']['fixed'] = true;

From this javascript method:

Drupal.behaviors.menuMiniPanels = function(context) {
  // In the administration section, hide hover settings unless a minipanel is selected
  var toggleHoverSettings = function() {
    if($('#edit-menu-options-minipanel').val() == '' && $('#menu-minipanels-hover-settings').is(':visible')) {
      $('#menu-minipanels-hover-settings').slideUp(500);
    }
    else if($('#edit-menu-options-minipanel').val() != '') {
      $('#menu-minipanels-hover-settings').slideDown(500);
    }
  }
  
  $('#edit-menu-options-minipanel').change(function(e) {
    toggleHoverSettings();
  });
  
  // Set appropriate on load
  toggleHoverSettings();

  // Add the hovers to each appropriate menu item.
  $('ul li a.menu-minipanel').each(function() {
	var matches = $(this).attr('class').match('menu-minipanel-([0-9]+)');
    var html = $('div.menu-minipanel-' + matches[1]).clone().show();
    var settings = Drupal.settings.menuMinipanels.panels['panel_' + matches[1]];
    // Specify a custom target.
    if (settings['position']['target'] == 'custom') {
      var target = $(settings['position']['target_custom']);
      if (target.length > 0) {
        settings['position']['target'] = target;
      }
      else {
        settings['position']['target'] = false; 
      }
    }
    else {
      settings['position']['target'] = false; 
    }
    settings['content'] = html;
    $(this).qtip(settings);
  });
};
;

I have the latest version for Panels installed. For the time being, I guess I'll be disabling menu minipanels whenever I want to add content to any panel.

Comments

codycraven’s picture

Confirmed error

stinky’s picture

Subscribe

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)

Anyone getting this with the latest Menu_MiniPanels codebase & Panels?

damienmckenna’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I'm unable to reproduce this with the latest 6.x-1.3-rc9 codebase.