mercadolibre/chico — Issue #432: Layer: the content of an opened layer change with anothers instanced layers content
Author: lquintana
Created: 2011-11-03 21:20:16+00:00
State: open

the content of an opened layer change with anothers instanced layers content

I have this code running:

/************************************************************************************/
var layer_gold_premium = $('span.gold_premium').layer({
content: $('ul.gold_premium'),
event: 'click'
});

var layer_gold = $('span.gold').layer({
content: $('ul.gold'),
event: 'click'
});

var layer_silver = $('span.silver').layer({
content: $('ul.silver'),
event: 'click'
});

var layer_bronze = $('span.bronze').layer({
content: $('ul.bronze'),
event: 'click'
});

var layer_free = $('span.free').layer({
content: $('ul.free'),
event: 'click'
});

var mpHelp = $('span.info-mp').layer({
event:'click',
content:$('p.info-mp'),
width:200
});

/************************************************************************************/

When i open a layer (for example *mpHelp*) and with this layer opened i click in another link to open a new layer, the content of that layer, change with the content of the previous layer openened.

Just ask me....