Skip to content

Commit 946e495

Browse files
committed
Regenerate dist
1 parent a20b07c commit 946e495

6 files changed

+15
-13
lines changed

dist/jquery.contextMenu.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Licensed under
1313
* MIT License http://www.opensource.org/licenses/mit-license
1414
*
15-
* Date: 2016-02-14T06:48:49.039Z
15+
* Date: 2016-02-28T09:41:28.803Z
1616
*/
1717
@font-face {
1818
font-family: "context-menu-icons";

dist/jquery.contextMenu.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* MIT License http://www.opensource.org/licenses/mit-license
1313
* GPL v3 http://opensource.org/licenses/GPL-3.0
1414
*
15-
* Date: 2016-02-14T06:53:14.258Z
15+
* Date: 2016-02-28T09:41:24.636Z
1616
*/
1717

1818
(function (factory) {
@@ -800,9 +800,8 @@
800800

801801
// make sure only one item is selected
802802
(opt.$menu ? opt : root).$menu
803-
.children(root.classNames.hover).trigger('contextmenu:blur');
804-
// Also check this for all siblings of the LI
805-
$this.siblings().trigger('contextmenu:blur');
803+
.children('.' + root.classNames.hover).trigger('contextmenu:blur')
804+
.children('.hover').trigger('contextmenu:blur');
806805

807806
if ($this.hasClass(root.classNames.disabled) || $this.hasClass(root.classNames.notSelectable)) {
808807
opt.$selected = null;
@@ -884,9 +883,10 @@
884883

885884
$this
886885
.addClass([root.classNames.hover, root.classNames.visible].join(' '))
887-
.siblings()
886+
// select other items and included items
887+
.parent().find('.context-menu-item').not($this)
888888
.removeClass(root.classNames.visible)
889-
.filter(root.classNames.hover)
889+
.filter('.' + root.classNames.hover)
890890
.trigger('contextmenu:blur');
891891

892892
// remember selected
@@ -1018,6 +1018,8 @@
10181018
// remove selected
10191019
opt.$menu.find('.' + opt.classNames.hover).trigger('contextmenu:blur');
10201020
opt.$selected = null;
1021+
// collapse all submenus
1022+
opt.$menu.find('.' + opt.classNames.visible).removeClass(opt.classNames.visible);
10211023
// unregister key and mouse handlers
10221024
// $(document).off('.contextMenuAutoHide keydown.contextMenu'); // http://bugs.jquery.com/ticket/10705
10231025
$(document).off('.contextMenuAutoHide').off('keydown.contextMenu');
@@ -1306,7 +1308,7 @@
13061308
display: '',
13071309
minWidth: '',
13081310
maxWidth: ''
1309-
}).width(function () {
1311+
}).outerWidth(function () {
13101312
return $(this).data('width');
13111313
});
13121314
}

dist/jquery.contextMenu.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)