Closed (cannot reproduce)
Project:
Menu Minipanels
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 May 2011 at 14:41 UTC
Updated:
14 Nov 2012 at 03:09 UTC
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
Comment #1
codycraven commentedConfirmed error
Comment #2
stinky commentedSubscribe
Comment #3
damienmckennaAnyone getting this with the latest Menu_MiniPanels codebase & Panels?
Comment #4
damienmckennaI'm unable to reproduce this with the latest 6.x-1.3-rc9 codebase.