init
This commit is contained in:
parent
06f61d8ce8
commit
f301cb744d
2271 changed files with 103162 additions and 0 deletions
11
02-ui/05-widgets/02-widgets-structure/menu-1/menu.js
Executable file
11
02-ui/05-widgets/02-widgets-structure/menu-1/menu.js
Executable file
|
@ -0,0 +1,11 @@
|
|||
function Menu(options) {
|
||||
var elem = options.elem;
|
||||
|
||||
// отмена выделения при клике на меню
|
||||
elem.on('mousedown selectstart', false);
|
||||
|
||||
elem.on('click', '.title', function() {
|
||||
elem.toggleClass('open');
|
||||
});
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue