Skip to content

Commit

Permalink
Release 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Dec 9, 2016
1 parent 4399b91 commit 7072b92
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 21 deletions.
Binary file modified dist/font/context-menu-icons.eot
Binary file not shown.
Binary file modified dist/font/context-menu-icons.ttf
Binary file not shown.
Binary file modified dist/font/context-menu-icons.woff
Binary file not shown.
Binary file modified dist/font/context-menu-icons.woff2
Binary file not shown.
8 changes: 4 additions & 4 deletions dist/jquery.contextMenu.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* jQuery contextMenu - Plugin for simple contextMenu handling
*
* Version: v2.3.1-dev
* Version: v2.4.0
*
* Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
* Web: http://swisnl.github.io/jQuery-contextMenu/
Expand All @@ -12,7 +12,7 @@
* Licensed under
* MIT License http://www.opensource.org/licenses/mit-license
*
* Date: 2016-10-25T19:12:34.206Z
* Date: 2016-12-09T15:36:46.256Z
*/
@-webkit-keyframes cm-spin {
0% {
Expand Down Expand Up @@ -54,8 +54,8 @@
font-style: normal;
font-weight: normal;

src: url("font/context-menu-icons.eot?23gdc");
src: url("font/context-menu-icons.eot?23gdc#iefix") format("embedded-opentype"), url("font/context-menu-icons.woff2?23gdc") format("woff2"), url("font/context-menu-icons.woff?23gdc") format("woff"), url("font/context-menu-icons.ttf?23gdc") format("truetype");
src: url("font/context-menu-icons.eot?4m394");
src: url("font/context-menu-icons.eot?4m394#iefix") format("embedded-opentype"), url("font/context-menu-icons.woff2?4m394") format("woff2"), url("font/context-menu-icons.woff?4m394") format("woff"), url("font/context-menu-icons.ttf?4m394") format("truetype");
}

.context-menu-icon-add:before {
Expand Down
14 changes: 8 additions & 6 deletions dist/jquery.contextMenu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jQuery contextMenu v2.3.1-dev - Plugin for simple contextMenu handling
* jQuery contextMenu v2.4.0 - Plugin for simple contextMenu handling
*
* Version: v2.3.1-dev
* Version: v2.4.0
*
* Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
* Web: http://swisnl.github.io/jQuery-contextMenu/
Expand All @@ -12,7 +12,7 @@
* MIT License http://www.opensource.org/licenses/mit-license
* GPL v3 http://opensource.org/licenses/GPL-3.0
*
* Date: 2016-10-25T19:12:34.446Z
* Date: 2016-12-09T15:36:45.809Z
*/

(function (factory) {
Expand Down Expand Up @@ -113,7 +113,9 @@
// flag denoting if a second trigger should simply move (true) or rebuild (false) an open menu
// as long as the trigger happened on one of the trigger-element's child nodes
reposition: true,

//ability to select submenu
selectableSubMenu: false,

// Default classname configuration to be able avoid conflicts in frameworks
classNames : {
hover: 'context-menu-hover', // Item hover
Expand Down Expand Up @@ -329,7 +331,7 @@
var visible;
if ($.isFunction(e.data.items[item].visible)) {
visible = e.data.items[item].visible.call($(e.currentTarget), item, e.data);
} else if (typeof item.visible !== 'undefined') {
} else if (typeof e.data.items[item] !== 'undefined') {
visible = e.data.items[item].visible === true;
} else {
visible = true;
Expand Down Expand Up @@ -839,7 +841,7 @@
callback;

// abort if the key is unknown or disabled or is a menu
if (!opt.items[key] || $this.is('.' + root.classNames.disabled + ', .context-menu-submenu, .context-menu-separator, .' + root.classNames.notSelectable)) {
if (root.selectableSubMenu && (!opt.items[key] || $this.is('.' + root.classNames.disabled + ', .context-menu-submenu, .context-menu-separator, .' + root.classNames.notSelectable))) {
return;
}

Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.contextMenu.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7072b92

Please sign in to comment.