Commit 3e9bdbc2 by 王东红

fix

parent 7c75b68b
...@@ -641,7 +641,9 @@ define([ ...@@ -641,7 +641,9 @@ define([
}); });
var self = this var self = this
$('div.submenu.shown').each(function () { $('div.submenu.shown').each(function () {
if (dropdown.parent('li')[0].className != $(this).parent('li')[0].className) { if (dropdown.length > 0 && dropdown.parent('li')[0].className != $(this).parent('li')[0].className) {
self.close($(this));
} else if(dropdown.length == 0){
self.close($(this)); self.close($(this));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment