Side navigation
#10065 closed bug (invalid)
Opened August 16, 2011 05:06PM UTC
Closed August 17, 2011 01:50PM UTC
.find() function error when i use css :before
Reported by: | eggprojec@gmail.hu | Owned by: | eggprojec@gmail.hu |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | selector | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<li><a href="#" class="user_widget_last_purchase_log_button">Utolsó rendeléseid</a><div class="user_widget_last_purchase_log_div" style="display: block; "><ul><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li><li class="user_widget_last_purchase_item_name">Gesztenyepüré</li></ul></li><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li></ul></li><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li></ul></li></ul></div></li>
css:
.user_widget_table .user_widget_last_purchase_log_div > ul > li > ul > li:before
{
content: '- ';
}
jQuery('.user_widget_last_purchase_log_button').click(function(event)
{
event.stopPropagation();
var elem = jQuery(this).next('.user_widget_last_purchase_log_div');
if(elem.css('display') == "none")
{
elem.slideToggle('slow',function()
{
jQuery(this).find('.user_widget_last_purchase_item_group_li').each(function()
{
jQuery(this).slideToggle('slow');
});
});
}
else
{
var child = elem.find('.user_widget_last_purchase_item_group_li');
var childLength = child.length;
var i = 0;
child.each(function()
{
if(i == (childLength-1))
{
jQuery(this).slideToggle('slow',function()
{
elem.slideToggle('slow');
});
}
else
{
jQuery(this).slideToggle('slow');
}
i++;
});
}
return false;
});
BUG => jQuery(this).find('.user_widget_last_purchase_item_group_li')
result errorType unexpected_eos
sorry little speak english :{
Attachments (0)
Change History (3)
Changed August 16, 2011 05:09PM UTC by comment:1
component: | unfiled → selector |
---|---|
owner: | → eggprojec@gmail.hu |
status: | new → pending |
Changed August 17, 2011 01:17PM UTC by comment:2
Sorry, yesterday do not work in Chrome, but today work ... i dont understand it :{
thank you for your response
Changed August 17, 2011 01:50PM UTC by comment:3
priority: | undecided → low |
---|---|
resolution: | → invalid |
status: | pending → closed |
Closing per OP's latest comment.
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/
Open the link and click to "Fork" (in the top menu) to get started.