Fix login box
This commit is contained in:
@@ -27,12 +27,18 @@
|
|||||||
$(this).addClass('open');
|
$(this).addClass('open');
|
||||||
})
|
})
|
||||||
.on('mouseleave.subnav', '.dropdown', function(){
|
.on('mouseleave.subnav', '.dropdown', function(){
|
||||||
if(!$(this).hasClass('open'))
|
var $this = $(this);
|
||||||
|
|
||||||
|
if(!$this.hasClass('open'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//This will check if an input child has focus. If no then remove class open
|
//This will check if an input child has focus. If no then remove class open
|
||||||
if ($(this).find(":input:focus").length == 0){
|
if ($this.find(":input:focus").length == 0){
|
||||||
$(this).removeClass('open');
|
$this.removeClass('open');
|
||||||
|
} else {
|
||||||
|
$this.find(":input:focus").one('blur', function(){
|
||||||
|
$this.trigger('mouseleave.subnav');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -69,7 +75,6 @@
|
|||||||
if($category_products.size() > 0){
|
if($category_products.size() > 0){
|
||||||
var $parent = $category_products.parent();
|
var $parent = $category_products.parent();
|
||||||
|
|
||||||
|
|
||||||
$parent.on('click.view-mode', '[data-toggle=view]', function(){
|
$parent.on('click.view-mode', '[data-toggle=view]', function(){
|
||||||
if( ($(this).hasClass('btn-grid') && $parent.hasClass('grid')) || ($(this).hasClass('btn-list') && $parent.hasClass('list')))
|
if( ($(this).hasClass('btn-grid') && $parent.hasClass('grid')) || ($(this).hasClass('btn-list') && $parent.hasClass('list')))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user