fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16331] Stable: Merge 16325:16330 from trunk


From: sigurdne
Subject: [Fmsystem-commits] [16331] Stable: Merge 16325:16330 from trunk
Date: Fri, 17 Feb 2017 04:20:25 -0500 (EST)

Revision: 16331
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16331
Author:   sigurdne
Date:     2017-02-17 04:20:25 -0500 (Fri, 17 Feb 2017)
Log Message:
-----------
Stable: Merge 16325:16330 from trunk

Modified Paths:
--------------
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.eot
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.ttf
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.woff
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.woff2
    branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.css
    branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.js
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css.map
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js.map
    branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.ui.position.js
    
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.ui.position.min.js
    branches/Version-2_0-branch/phpgwapi/templates/base/datatable_jquery.xsl

Property Changed:
----------------
    branches/Version-2_0-branch/

Index: branches/Version-2_0-branch
===================================================================
--- branches/Version-2_0-branch 2017-02-17 09:16:49 UTC (rev 16330)
+++ branches/Version-2_0-branch 2017-02-17 09:20:25 UTC (rev 16331)

Property changes on: branches/Version-2_0-branch
___________________________________________________________________
Modified: svn:mergeinfo
## -1,4 +1,4 ##
 /branches/dev-syncromind:13653
 /branches/dev-syncromind-2:14933-16300
 /branches/stavangerkommune:12743-12875,12986
-/trunk:14721-14732,14734-14735,14737,14739,14741,14743-14744,14746-14749,14751,14753,14755-14757,14759,14761-14764,14766-14768,14770-14783,14785-14792,14794-14813,14815-14816,14818,14820-14822,14824-14825,14827-14829,14831-14834,14836,14838,14840-14842,14844-14845,14847,14849-14866,14868-14869,14871,14873-14875,14877-14878,14880-14884,14886-14896,14898,14900-14902,14904,14906-14909,14911-14915,14917-14919,14921-14922,14924-14978,14980-15258,15260-15261,15263-15264,15266-15285,15287-15288,15290-15291,15293,15295,15297,15299-15305,15307-15310,15312-15335,15337-15352,15354,15356,15358,15360-15541,15543-15566,15568-15569,15571,15573-15581,15583,15585-15617,15619,15621-15630,15632-15635,15637-15639,15641-15643,15645,15647-15665,15667-15668,15670-15671,15673-15693,15695-15712,15714-15764,15766-15767,15769-15787,15789-15802,15804-15811,15813-15814,15816-15818,15820-15849,15851-15887,15889-15900,15902-16046,16048-16051,16053,16055,16057-16063,16065-16071,16073-16077,16079-16081,16083-16099,16101-16130,16132-16140,16142,16144-16212,16214-16219,16221,16223-16224,16226,16228-16229,16231,16233,16235,16237,16239-16240,16242,16244-16246,16248,16250-16251,16253-16255,16257-16259,16261,16263,16265,16267,16269-16276,16278,16280-16283,16285,16287-16288,16290,16292-16295,16297-16305,16307-16314,16316-16318,16320-16322,16324
\ No newline at end of property
+/trunk:14721-14732,14734-14735,14737,14739,14741,14743-14744,14746-14749,14751,14753,14755-14757,14759,14761-14764,14766-14768,14770-14783,14785-14792,14794-14813,14815-14816,14818,14820-14822,14824-14825,14827-14829,14831-14834,14836,14838,14840-14842,14844-14845,14847,14849-14866,14868-14869,14871,14873-14875,14877-14878,14880-14884,14886-14896,14898,14900-14902,14904,14906-14909,14911-14915,14917-14919,14921-14922,14924-14978,14980-15258,15260-15261,15263-15264,15266-15285,15287-15288,15290-15291,15293,15295,15297,15299-15305,15307-15310,15312-15335,15337-15352,15354,15356,15358,15360-15541,15543-15566,15568-15569,15571,15573-15581,15583,15585-15617,15619,15621-15630,15632-15635,15637-15639,15641-15643,15645,15647-15665,15667-15668,15670-15671,15673-15693,15695-15712,15714-15764,15766-15767,15769-15787,15789-15802,15804-15811,15813-15814,15816-15818,15820-15849,15851-15887,15889-15900,15902-16046,16048-16051,16053,16055,16057-16063,16065-16071,16073-16077,16079-16081,16083-16099,16101-16130,16132-16140,16142,16144-16212,16214-16219,16221,16223-16224,16226,16228-16229,16231,16233,16235,16237,16239-16240,16242,16244-16246,16248,16250-16251,16253-16255,16257-16259,16261,16263,16265,16267,16269-16276,16278,16280-16283,16285,16287-16288,16290,16292-16295,16297-16305,16307-16314,16316-16318,16320-16322,16324,16326-16330
\ No newline at end of property
Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.eot
===================================================================
(Binary files differ)

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.ttf
===================================================================
(Binary files differ)

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.woff
===================================================================
(Binary files differ)

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/font/context-menu-icons.woff2
===================================================================
(Binary files differ)

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.css
===================================================================
--- branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.css  
2017-02-17 09:16:49 UTC (rev 16330)
+++ branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.css  
2017-02-17 09:20:25 UTC (rev 16331)
@@ -2,34 +2,101 @@
 /*!
  * jQuery contextMenu - Plugin for simple contextMenu handling
  *
- * Version: v2.1.0
+ * Version: v2.4.3-dev
  *
  * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
  * Web: http://swisnl.github.io/jQuery-contextMenu/
  *
- * Copyright (c) 2011-2016 SWIS BV and contributors
+ * Copyright (c) 2011-2017 SWIS BV and contributors
  *
  * Licensed under
  *   MIT License http://www.opensource.org/licenses/mit-license
  *
- * Date: 2016-02-14T06:48:49.039Z
+ * Date: 2017-01-21T11:53:09.375Z
  */
address@hidden cm-spin {
+  0% {
+    -webkit-transform: translateY(-50%) rotate(0deg);
+            transform: translateY(-50%) rotate(0deg);
+  }
+  100% {
+    -webkit-transform: translateY(-50%) rotate(359deg);
+            transform: translateY(-50%) rotate(359deg);
+  }
+}
address@hidden cm-spin {
+  0% {
+    -webkit-transform: translateY(-50%) rotate(0deg);
+         -o-transform: translateY(-50%) rotate(0deg);
+            transform: translateY(-50%) rotate(0deg);
+  }
+  100% {
+    -webkit-transform: translateY(-50%) rotate(359deg);
+         -o-transform: translateY(-50%) rotate(359deg);
+            transform: translateY(-50%) rotate(359deg);
+  }
+}
address@hidden cm-spin {
+  0% {
+    -webkit-transform: translateY(-50%) rotate(0deg);
+         -o-transform: translateY(-50%) rotate(0deg);
+            transform: translateY(-50%) rotate(0deg);
+  }
+  100% {
+    -webkit-transform: translateY(-50%) rotate(359deg);
+         -o-transform: translateY(-50%) rotate(359deg);
+            transform: translateY(-50%) rotate(359deg);
+  }
+}
+
 @font-face {
   font-family: "context-menu-icons";
   font-style: normal; 
   font-weight: normal;
 
-  src: url("font/context-menu-icons.eot?2qmzf");
-  src: url("font/context-menu-icons.eot?2qmzf#iefix") 
format("embedded-opentype"), url("font/context-menu-icons.woff2?2qmzf") 
format("woff2"), url("font/context-menu-icons.woff?2qmzf") format("woff"), 
url("font/context-menu-icons.ttf?2qmzf") format("truetype");
+  src: url("font/context-menu-icons.eot?4rkwk");
+  src: url("font/context-menu-icons.eot?4rkwk#iefix") 
format("embedded-opentype"), url("font/context-menu-icons.woff2?4rkwk") 
format("woff2"), url("font/context-menu-icons.woff?4rkwk") format("woff"), 
url("font/context-menu-icons.ttf?4rkwk") format("truetype");
 }
 
-.context-menu-icon:before {
+.context-menu-icon-add:before {
+  content: "\EA01";
+}
+
+.context-menu-icon-copy:before {
+  content: "\EA02";
+}
+
+.context-menu-icon-cut:before {
+  content: "\EA03";
+}
+
+.context-menu-icon-delete:before {
+  content: "\EA04";
+}
+
+.context-menu-icon-edit:before {
+  content: "\EA05";
+}
+
+.context-menu-icon-loading:before {
+  content: "\EA06";
+}
+
+.context-menu-icon-paste:before {
+  content: "\EA07";
+}
+
+.context-menu-icon-quit:before {
+  content: "\EA08";
+}
+
+.context-menu-icon::before {
   position: absolute;
   top: 50%;
   left: 0;
-  width: 28px; 
+  width: 2em; 
   font-family: "context-menu-icons";
-  font-size: 16px;
+  font-size: 1em;
   font-style: normal;
   font-weight: normal;
   line-height: 1;
@@ -44,51 +111,64 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
-.context-menu-icon-add:before {
-  content: "";
+.context-menu-icon.context-menu-hover:before {
+  color: #fff;
 }
 
-.context-menu-icon-copy:before {
-  content: "";
+.context-menu-icon.context-menu-disabled::before {
+  color: #bbb;
 }
 
-.context-menu-icon-cut:before {
-  content: "";
+.context-menu-icon.context-menu-icon-loading:before {
+  -webkit-animation: cm-spin 2s infinite;
+       -o-animation: cm-spin 2s infinite;
+          animation: cm-spin 2s infinite;
 }
 
-.context-menu-icon-delete:before {
-  content: "";
+.context-menu-icon.context-menu-icon--fa {
+  display: list-item;
+  font-family: inherit;
 }
+.context-menu-icon.context-menu-icon--fa::before {
+  position: absolute;
+  top: 50%;
+  left: 0;
+  width: 2em; 
+  font-family: FontAwesome;
+  font-size: 1em;
+  font-style: normal;
+  font-weight: normal;
+  line-height: 1;
+  color: #2980b9;
+  text-align: center;
+  -webkit-transform: translateY(-50%);
+      -ms-transform: translateY(-50%);
+       -o-transform: translateY(-50%);
+          transform: translateY(-50%);
 
-.context-menu-icon-edit:before {
-  content: "";
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
 }
-
-.context-menu-icon-paste:before {
-  content: "";
+.context-menu-icon.context-menu-icon--fa.context-menu-hover:before {
+  color: #fff;
 }
-
-.context-menu-icon-quit:before {
-  content: "";
+.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before {
+  color: #bbb;
 }
 
-.context-menu-icon.context-menu-hover:before {
-  color: #fff;
-}
-
 .context-menu-list {
   position: absolute; 
   display: inline-block;
-  min-width: 180px;
-  max-width: 360px;
-  padding: 4px 0;
-  margin: 5px;
+  min-width: 13em;
+  max-width: 26em;
+  padding: .25em 0;
+  margin: .3em;
   font-family: inherit;
   font-size: inherit;
   list-style-type: none;
   background: #fff;
   border: 1px solid #bebebe;
-  border-radius: 3px;
+  border-radius: .2em;
   -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
           box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
 }
@@ -95,7 +175,7 @@
 
 .context-menu-item {
   position: relative;
-  padding: 3px 28px;
+  padding: .2em 2em;
   color: #2f2f2f;
   -webkit-user-select: none;
      -moz-user-select: none;
@@ -106,7 +186,7 @@
 
 .context-menu-separator {
   padding: 0; 
-  margin: 5px 0;
+  margin: .35em 0;
   border-bottom: 1px solid #e6e6e6;
 }
 
@@ -125,24 +205,20 @@
 }
 
 .context-menu-item.context-menu-disabled {
-  color: #626262; 
+  color: #bbb;
+  cursor: default; 
   background-color: #fff;
 }
 
-.context-menu-item.context-menu-disabled {
-  color: #626262;
+.context-menu-input.context-menu-hover {
+  color: #2f2f2f; 
+  cursor: default;
 }
 
-.context-menu-input.context-menu-hover,
-.context-menu-item.context-menu-disabled.context-menu-hover {
-  cursor: default; 
-  background-color: #eee;
-}
-
 .context-menu-submenu:after {
   position: absolute;
   top: 50%;
-  right: 8px;
+  right: .5em;
   z-index: 1; 
   width: 0;
   height: 0;
@@ -149,7 +225,7 @@
   content: '';
   border-color: transparent transparent transparent #2f2f2f;
   border-style: solid;
-  border-width: 4px 0 4px 4px;
+  border-width: .25em 0 .25em .25em;
   -webkit-transform: translateY(-50%);
       -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
@@ -160,7 +236,7 @@
  * Inputs
  */
 .context-menu-item.context-menu-input {
-  padding: 5px 10px;
+  padding: .3em .6em;
 }
 
 /* vertically align inside labels */
@@ -172,9 +248,14 @@
 .context-menu-input > label > input[type="checkbox"],
 .context-menu-input > label > input[type="radio"] {
   position: relative;
-  top: 3px;
+  top: .12em; 
+  margin-right: .4em;
 }
 
+.context-menu-input > label {
+  margin: 0;
+}
+
 .context-menu-input > label,
 .context-menu-input > label > input[type="text"],
 .context-menu-input > label > textarea,
@@ -187,13 +268,13 @@
 }
 
 .context-menu-input > label > textarea {
-  height: 100px;
+  height: 7em;
 }
 
 .context-menu-item > .context-menu-list {
-  top: 5px; 
+  top: .3em; 
   /* re-positioned by js */
-  right: -5px;
+  right: -.3em;
   display: none;
 }
 

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.js
===================================================================
--- branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.js   
2017-02-17 09:16:49 UTC (rev 16330)
+++ branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.js   
2017-02-17 09:20:25 UTC (rev 16331)
@@ -1,20 +1,22 @@
 /*!
- * jQuery contextMenu v2.1.0 - Plugin for simple contextMenu handling
+ * jQuery contextMenu v2.4.3-dev - Plugin for simple contextMenu handling
  *
- * Version: v2.1.0
+ * Version: v2.4.3-dev
  *
  * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
  * Web: http://swisnl.github.io/jQuery-contextMenu/
  *
- * Copyright (c) 2011-2016 SWIS BV and contributors
+ * Copyright (c) 2011-2017 SWIS BV and contributors
  *
  * Licensed under
  *   MIT License http://www.opensource.org/licenses/mit-license
  *   GPL v3 http://opensource.org/licenses/GPL-3.0
  *
- * Date: 2016-02-14T06:53:14.258Z
+ * Date: 2017-01-21T11:53:09.617Z
  */
 
+// jscs:disable
+/* jshint ignore:start */
 (function (factory) {
     if (typeof define === 'function' && define.amd) {
         // AMD. Register as anonymous module.
@@ -60,7 +62,7 @@
      })();
      */
 
-    /* jshint ignore:start */
+
     if (!$.ui || !$.widget) {
         // duck punch $.cleanData like jQueryUI does to get that remove event
         $.cleanData = (function (orig) {
@@ -83,6 +85,7 @@
         })($.cleanData);
     }
     /* jshint ignore:end */
+    // jscs:enable
 
     var // currently active contextMenu trigger
         $currentTrigger = null,
@@ -114,9 +117,11 @@
             // 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
                 disabled: 'context-menu-disabled', // Item disabled
                 visible: 'context-menu-visible', // Item visible
@@ -129,7 +134,8 @@
                 iconPaste: 'context-menu-icon-paste',
                 iconDelete: 'context-menu-icon-delete',
                 iconAdd: 'context-menu-icon-add',
-                iconQuit: 'context-menu-icon-quit'
+                iconQuit: 'context-menu-icon-quit',
+                iconLoadingClass: 'context-menu-icon-loading'
             },
 
             // determine position to show menu at
@@ -194,11 +200,17 @@
             },
             // position the sub-menu
             positionSubmenu: function ($menu) {
+                if ($menu === undefined) {
+                    // When user hovers over item (which has sub items) 
handle.focusItem will call this.
+                    // but the submenu does not exist yet if opt.items is a 
promise. just return, will
+                    // call positionSubmenu after promise is completed.
+                    return;
+                }
                 if ($.ui && $.ui.position) {
                     // .position() is provided as a jQuery UI utility
                     // (...and it won't work on hidden elements)
                     $menu.css('display', 'block').position({
-                        my: 'left top',
+                        my: 'left top-5',
                         at: 'right top',
                         of: this,
                         collision: 'flipfit fit'
@@ -206,8 +218,8 @@
                 } else {
                     // determine contextMenu position
                     var offset = {
-                        top: 0,
-                        left: this.outerWidth()
+                        top: -9,
+                        left: this.outerWidth() - 5
                     };
                     $menu.css(offset);
                 }
@@ -323,7 +335,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' && e.data.items[item].visible) {
                                 visible = e.data.items[item].visible === true;
                             } else {
                                 visible = true;
@@ -335,15 +347,7 @@
                     }
                     if (showMenu) {
                         // show menu
-                               var menuContainer = (e.data.appendTo === null ? 
$('body') : $(e.data.appendTo));
-                               var srcElement = e.target || e.srcElement || 
e.originalTarget;
-                        if (e.offsetX !== undefined && e.offsetY !== 
undefined) {
-                            op.show.call($this, e.data,
-                                         $(srcElement).offset().left - 
menuContainer.offset().left + e.offsetX,
-                                         $(srcElement).offset().top - 
menuContainer.offset().top + e.offsetY);
-                        } else {
-                            op.show.call($this, e.data, e.pageX, e.pageY);
-                        }
+                        op.show.call($this, e.data, e.pageX, e.pageY);
                     }
                 }
             },
@@ -453,6 +457,18 @@
                     if (document.elementFromPoint && root.$layer) {
                         root.$layer.hide();
                         target = document.elementFromPoint(x - 
$win.scrollLeft(), y - $win.scrollTop());
+                        
+                        // also need to try and focus this element if we're in 
a contenteditable area,
+                        // as the layer will prevent the browser mouse action 
we want
+                        if (target.isContentEditable) {
+                           var range = document.createRange(),
+                              sel = window.getSelection();
+                           range.selectNode(target);
+                           range.collapse(true);
+                           sel.removeAllRanges();
+                           sel.addRange(range);
+                        }
+                        
                         root.$layer.show();
                     }
 
@@ -491,7 +507,9 @@
                         });
                     }
 
-                    root.$menu.trigger('contextmenu:hide');
+                    if (root != null && root.$menu != null) {
+                        root.$menu.trigger('contextmenu:hide');
+                    }
                 }, 50);
             },
             // key handled :hover
@@ -521,7 +539,7 @@
                                        } else {
                                                if (target.offsetParent !== 
null && target.offsetParent !== undefined) {
                                                        
getZIndexOfTriggerTarget(target.offsetParent);
-                                               } 
+                                               }
                                                else if (target.parentElement 
!== null && target.parentElement !== undefined) {
                                                        
getZIndexOfTriggerTarget(target.parentElement);
                                                }
@@ -545,7 +563,7 @@
                                 if(opt.$selected) {
                                     opt.$selected.find('input, textarea, 
select').blur();
                                 }
-                                opt.$menu.trigger('prevcommand');
+                                if (opt.$menu != null) 
opt.$menu.trigger('prevcommand');
                                 return;
                             } else if (e.keyCode === 38 && 
opt.$selected.find('input, textarea, select').prop('type') === 'checkbox') {
                                 // checkboxes don't capture this key
@@ -553,7 +571,7 @@
                                 return;
                             }
                         } else if (e.keyCode !== 9 || e.shiftKey) {
-                            opt.$menu.trigger('prevcommand');
+                            if (opt.$menu != null) 
opt.$menu.trigger('prevcommand');
                             return;
                         }
                         break;
@@ -567,7 +585,7 @@
                                 if(opt.$selected) {
                                     opt.$selected.find('input, textarea, 
select').blur();
                                 }
-                                opt.$menu.trigger('nextcommand');
+                                if (opt.$menu != null) 
opt.$menu.trigger('nextcommand');
                                 return;
                             } else if (e.keyCode === 40 && 
opt.$selected.find('input, textarea, select').prop('type') === 'checkbox') {
                                 // checkboxes don't capture this key
@@ -575,7 +593,7 @@
                                 return;
                             }
                         } else {
-                            opt.$menu.trigger('nextcommand');
+                            if (opt.$menu != null) 
opt.$menu.trigger('nextcommand');
                             return;
                         }
                         break;
@@ -645,7 +663,7 @@
 
                     case 27: // esc
                         handle.keyStop(e, opt);
-                        opt.$menu.trigger('contextmenu:hide');
+                        if (opt.$menu != null) 
opt.$menu.trigger('contextmenu:hide');
                         return;
 
                     default: // 0-9, a-z
@@ -800,9 +818,8 @@
 
                 // make sure only one item is selected
                 (opt.$menu ? opt : root).$menu
-                    
.children(root.classNames.hover).trigger('contextmenu:blur');
-                // Also check this for all siblings of the LI
-                $this.siblings().trigger('contextmenu:blur');
+                    .children('.' + 
root.classNames.hover).trigger('contextmenu:blur')
+                    .children('.hover').trigger('contextmenu:blur');
 
                 if ($this.hasClass(root.classNames.disabled) || 
$this.hasClass(root.classNames.notSelectable)) {
                     opt.$selected = null;
@@ -840,7 +857,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 (!opt.items[key] || $this.is('.' + root.classNames.disabled 
+ ', .context-menu-separator, .' + root.classNames.notSelectable) || 
($this.is('.context-menu-submenu') && root.selectableSubMenu === false )) {
                     return;
                 }
 
@@ -847,9 +864,9 @@
                 e.preventDefault();
                 e.stopImmediatePropagation();
 
-                if ($.isFunction(root.callbacks[key]) && 
Object.prototype.hasOwnProperty.call(root.callbacks, key)) {
+                if ($.isFunction(opt.callbacks[key]) && 
Object.prototype.hasOwnProperty.call(opt.callbacks, key)) {
                     // item-specific callback
-                    callback = root.callbacks[key];
+                    callback = opt.callbacks[key];
                 } else if ($.isFunction(root.callback)) {
                     // default callback
                     callback = root.callback;
@@ -882,11 +899,16 @@
                     opt = data.contextMenu,
                     root = data.contextMenuRoot;
 
+                if ($this.hasClass(root.classNames.disabled) || 
$this.hasClass(root.classNames.notSelectable)) {
+                    return;
+                }
+
                 $this
                     .addClass([root.classNames.hover, 
root.classNames.visible].join(' '))
-                    .siblings()
+                    // select other items and included items
+                    .parent().find('.context-menu-item').not($this)
                     .removeClass(root.classNames.visible)
-                    .filter(root.classNames.hover)
+                    .filter('.' + root.classNames.hover)
                     .trigger('contextmenu:blur');
 
                 // remember selected
@@ -976,7 +998,7 @@
                         if (opt.$layer && !opt.hovering && (!(e.pageX >= 
pos.left && e.pageX <= pos.right) || !(e.pageY >= pos.top && e.pageY <= 
pos.bottom))) {
                             /* Additional hover check after short time, you 
might just miss the edge of the menu */
                             setTimeout(function () {
-                                if (!opt.hovering) { 
opt.$menu.trigger('contextmenu:hide'); }
+                                if (!opt.hovering && opt.$menu != null) { 
opt.$menu.trigger('contextmenu:hide'); }
                             }, 50);
                         }
                     });
@@ -1018,6 +1040,8 @@
                 // remove selected
                 opt.$menu.find('.' + 
opt.classNames.hover).trigger('contextmenu:blur');
                 opt.$selected = null;
+                // collapse all submenus
+                opt.$menu.find('.' + 
opt.classNames.visible).removeClass(opt.classNames.visible);
                 // unregister key and mouse handlers
                 // $(document).off('.contextMenuAutoHide 
keydown.contextMenu'); // http://bugs.jquery.com/ticket/10705
                 
$(document).off('.contextMenuAutoHide').off('keydown.contextMenu');
@@ -1087,7 +1111,15 @@
                             
$name.append(document.createTextNode(item._afterAccesskey));
                         }
                     } else {
-                        $name.text(item.name);
+                        if (item.isHtmlName) {
+                            // restrict use with access keys
+                            if (typeof item.accesskey !== 'undefined') {
+                                throw new Error('accesskeys are not compatible 
with HTML names and cannot be used together in the same item');
+                            }
+                            $name.html(item.name);
+                        } else {
+                            $name.text(item.name);
+                        }
                     }
                     return $name;
                 }
@@ -1104,7 +1136,8 @@
 
                     // Make old school string seperator a real item so checks 
wont be
                     // akward later.
-                    if (typeof item === 'string') {
+                    // And normalize 'cm_separator' into 'cm_seperator'.
+                    if (typeof item === 'string' || item.type === 
'cm_separator') {
                         item = { type : 'cm_seperator' };
                     }
 
@@ -1138,7 +1171,9 @@
                         // register commands
                         $.each([opt, root], function (i, k) {
                             k.commands[key] = item;
-                            if ($.isFunction(item.callback)) {
+                            // Overwrite only if undefined or the item is 
appended to the root. This so it
+                            // doesn't overwrite callbacks of root elements if 
the name is the same.
+                            if ($.isFunction(item.callback) && 
(k.callbacks[key] === undefined || opt.type === undefined)) {
                                 k.callbacks[key] = item.callback;
                             }
                         });
@@ -1148,6 +1183,8 @@
                             $t.addClass('context-menu-separator ' + 
root.classNames.notSelectable);
                         } else if (item.type === 'html') {
                             $t.addClass('context-menu-html ' + 
root.classNames.notSelectable);
+                        } else if (item.type === 'sub') {
+                           // We don't want to execute the next else-if if it 
is a sub.
                         } else if (item.type) {
                             $label = $('<label></label>').appendTo($t);
                             createNameNode(item).appendTo($label);
@@ -1167,7 +1204,7 @@
                                 break;
 
                             case 'text':
-                                $input = $('<input type="text" value="1" 
name="" value="">')
+                                $input = $('<input type="text" value="1" 
name="" />')
                                     .attr('name', 'context-menu-input-' + key)
                                     .val(item.value || '')
                                     .appendTo($label);
@@ -1185,7 +1222,7 @@
                                 break;
 
                             case 'checkbox':
-                                $input = $('<input type="checkbox" value="1" 
name="" value="">')
+                                $input = $('<input type="checkbox" value="1" 
name="" />')
                                     .attr('name', 'context-menu-input-' + key)
                                     .val(item.value || '')
                                     .prop('checked', !!item.selected)
@@ -1193,7 +1230,7 @@
                                 break;
 
                             case 'radio':
-                                $input = $('<input type="radio" value="1" 
name="" value="">')
+                                $input = $('<input type="radio" value="1" 
name="" />')
                                     .attr('name', 'context-menu-input-' + 
item.radio)
                                     .val(item.value || '')
                                     .prop('checked', !!item.selected)
@@ -1201,7 +1238,7 @@
                                 break;
 
                             case 'select':
-                                $input = $('<select name="">')
+                                $input = $('<select name=""></select>')
                                     .attr('name', 'context-menu-input-' + key)
                                     .appendTo($label);
                                 if (item.options) {
@@ -1214,11 +1251,20 @@
 
                             case 'sub':
                                 createNameNode(item).appendTo($t);
-
                                 item.appendTo = item.$node;
-                                op.create(item, root);
                                 $t.data('contextMenu', 
item).addClass('context-menu-submenu');
                                 item.callback = null;
+
+                                // If item contains items, and this is a 
promise, we should create it later
+                                // check if subitems is of type promise. If it 
is a promise we need to create
+                                // it later, after promise has been resolved.
+                                if ('function' === typeof item.items.then) {
+                                  // probably a promise, process it, when 
completed it will create the sub menu's.
+                                  op.processPromises(item, root, item.items);
+                                } else {
+                                  // normal submenu.
+                                  op.create(item, root);
+                                }
                                 break;
 
                             case 'html':
@@ -1228,7 +1274,9 @@
                             default:
                                 $.each([opt, root], function (i, k) {
                                     k.commands[key] = item;
-                                    if ($.isFunction(item.callback)) {
+                                    // Overwrite only if undefined or the item 
is appended to the root. This so it
+                                    // doesn't overwrite callbacks of root 
elements if the name is the same.
+                                    if ($.isFunction(item.callback) && 
(k.callbacks[key] === undefined || opt.type === undefined)) {
                                         k.callbacks[key] = item.callback;
                                     }
                                 });
@@ -1252,7 +1300,12 @@
                             if ($.isFunction(item.icon)) {
                                 item._icon = item.icon.call(this, this, $t, 
key, item);
                             } else {
-                                item._icon = root.classNames.icon + ' ' + 
root.classNames.icon + '-' + item.icon;
+                                if ( typeof(item.icon) === 'string' && 
item.icon.substring(0,3) === 'fa-' ) {
+                                    // to enable font awesome
+                                    item._icon = root.classNames.icon + ' ' + 
root.classNames.icon + '--fa fa ' + item.icon;
+                                } else {
+                                    item._icon = root.classNames.icon + ' ' + 
root.classNames.icon + '-' + item.icon;
+                                }
                             }
                             $t.addClass(item._icon);
                         }
@@ -1280,6 +1333,7 @@
                 opt.$menu.appendTo(opt.appendTo || document.body);
             },
             resize: function ($menu, nested) {
+                var domMenu;
                 // determine widths of submenus, as CSS won't grow them 
automatically
                 // position:absolute within position:absolute; min-width:100; 
max-width:200; results in width: 100;
                 // kinda sucks hard...
@@ -1287,7 +1341,10 @@
                 // determine width of absolutely positioned element
                 $menu.css({position: 'absolute', display: 'block'});
                 // don't apply yet, because that would break nested elements' 
widths
-                $menu.data('width', Math.ceil($menu.outerWidth()));
+                $menu.data('width',
+                    (domMenu = $menu.get(0)).getBoundingClientRect ?
+                        Math.ceil(domMenu.getBoundingClientRect().width) :
+                        $menu.outerWidth() + 1); // outerWidth() returns 
rounded pixels
                 // reset styles so they allow nested elements to grow/shrink 
naturally
                 $menu.css({
                     position: 'static',
@@ -1306,7 +1363,7 @@
                         display: '',
                         minWidth: '',
                         maxWidth: ''
-                    }).width(function () {
+                    }).outerWidth(function () {
                         return $(this).data('width');
                     });
                 }
@@ -1373,8 +1430,8 @@
             layer: function (opt, zIndex) {
                 // add transparent layer for click area
                 // filter and background for Internet Explorer, Issue #23
-                var $layer = opt.$layer = $('<div id="context-menu-layer" 
style="position:fixed; z-index:' + zIndex + '; top:0; left:0; opacity: 0; 
filter: alpha(opacity=0); background-color: #000;"></div>')
-                    .css({height: $win.height(), width: $win.width(), display: 
'block'})
+                var $layer = opt.$layer = $('<div 
id="context-menu-layer"></div>')
+                    .css({height: $win.height(), width: $win.width(), display: 
'block', position: 'fixed', 'z-index': zIndex, top:0, left:0, opacity: 0, 
filter: 'alpha(opacity=0)', 'background-color': '#000'})
                     .data('contextMenuRoot', opt)
                     .insertBefore(this)
                     .on('contextmenu', handle.abortevent)
@@ -1389,6 +1446,46 @@
                 }
 
                 return $layer;
+            },
+            processPromises: function (opt, root, promise) {
+                // Start
+                opt.$node.addClass(root.classNames.iconLoadingClass);
+
+                function completedPromise(opt,root,items) {
+                    // Completed promise (dev called promise.resolve). We now 
have a list of items which can
+                    // be used to create the rest of the context menu.
+                    if (items === undefined) {
+                        // Null result, dev should have checked
+                        errorPromise(undefined);//own error object
+                    }
+                    finishPromiseProcess(opt,root, items);
+                }
+                function errorPromise(opt,root,errorItem) {
+                    // User called promise.reject() with an error item, if 
not, provide own error item.
+                    if (errorItem === undefined) {
+                        errorItem = { "error": { name: "No items and no error 
item", icon: "context-menu-icon context-menu-icon-quit" } };
+                        if (window.console) {
+                            (console.error || console.log).call(console, 'When 
you reject a promise, provide an "items" object, equal to normal sub-menu 
items');
+                        }
+                    } else if(typeof errorItem === 'string'){
+                                                           errorItem = { 
"error": { name: errorItem } };
+                                                 }
+                    finishPromiseProcess(opt,root,errorItem);
+                }
+                function finishPromiseProcess(opt,root,items) {
+                    if(root.$menu === undefined || !root.$menu.is(':visible')){
+                        return;
+                    }
+                    opt.$node.removeClass(root.classNames.iconLoadingClass);
+                    opt.items = items;
+                    op.create(opt, root, true); // Create submenu
+                    op.update(opt, root); // Correctly update position if user 
is already hovered over menu item
+                    root.positionSubmenu.call(opt.$node, opt.$menu); // 
positionSubmenu, will only do anything if user already hovered over menu item 
that just got new subitems.
+                }
+
+                // Wait for promise completion. .then(success, error, notify) 
(we don't track notify). Bind the opt
+                // and root to avoid scope problems
+                promise.then(completedPromise.bind(this, opt, root), 
errorPromise.bind(this, opt, root));
             }
         };
 
@@ -1470,7 +1567,7 @@
             // you never know what they throw at you...
             $context = $(o.context).first();
             o.context = $context.get(0);
-            _hasContext = o.context !== document;
+            _hasContext = !$(o.context).is(document);
         }
 
         switch (operation) {
@@ -1499,6 +1596,17 @@
                 }
 
                 if (!initialized) {
+                    var itemClick = o.itemClickEvent === 'click' ? 
'click.contextMenu' : 'mouseup.contextMenu';
+                    var contextMenuItemObj = {
+                            // 'mouseup.contextMenu': handle.itemClick,
+                            // 'click.contextMenu': handle.itemClick,
+                            'contextmenu:focus.contextMenu': handle.focusItem,
+                            'contextmenu:blur.contextMenu': handle.blurItem,
+                            'contextmenu.contextMenu': handle.abortevent,
+                            'mouseenter.contextMenu': handle.itemMouseenter,
+                            'mouseleave.contextMenu': handle.itemMouseleave
+                        };
+                    contextMenuItemObj[itemClick] = handle.itemClick;
                     // make sure item click is registered first
                     $document
                         .on({
@@ -1510,14 +1618,7 @@
                             'mouseleave.contextMenu': handle.menuMouseleave
                         }, '.context-menu-list')
                         .on('mouseup.contextMenu', '.context-menu-input', 
handle.inputClick)
-                        .on({
-                            'mouseup.contextMenu': handle.itemClick,
-                            'contextmenu:focus.contextMenu': handle.focusItem,
-                            'contextmenu:blur.contextMenu': handle.blurItem,
-                            'contextmenu.contextMenu': handle.abortevent,
-                            'mouseenter.contextMenu': handle.itemMouseenter,
-                            'mouseleave.contextMenu': handle.itemMouseleave
-                        }, '.context-menu-item');
+                        .on(contextMenuItemObj, '.context-menu-item');
 
                     initialized = true;
                 }
@@ -1565,10 +1666,16 @@
                     // get proper options
                     var context = o.context;
                     $.each(menus, function (ns, o) {
-                        if (o.context !== context) {
+                        
+                        if (!o) {
                             return true;
                         }
 
+                        // Is this menu equest to the context called from
+                        if (!$(context).is(o.selector)) {
+                            return true;
+                        }
+
                         $visibleMenu = 
$('.context-menu-list').filter(':visible');
                         if ($visibleMenu.length && 
$visibleMenu.data().contextMenuRoot.$trigger.is($(o.context).find(o.selector))) 
{
                             $visibleMenu.trigger('contextmenu:hide', {force: 
true});

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css
===================================================================
--- 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css  
    2017-02-17 09:16:49 UTC (rev 16330)
+++ 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css  
    2017-02-17 09:20:25 UTC (rev 16331)
@@ -1,16 +1,16 @@
 @charset "UTF-8";/*!
  * jQuery contextMenu - Plugin for simple contextMenu handling
  *
- * Version: v2.1.0
+ * Version: v2.4.3-dev
  *
  * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
  * Web: http://swisnl.github.io/jQuery-contextMenu/
  *
- * Copyright (c) 2011-2016 SWIS BV and contributors
+ * Copyright (c) 2011-2017 SWIS BV and contributors
  *
  * Licensed under
  *   MIT License http://www.opensource.org/licenses/mit-license
  *
- * Date: 2016-02-14T06:48:49.039Z
- 
*/@font-face{font-family:context-menu-icons;font-style:normal;font-weight:400;src:url(font/context-menu-icons.eot?2qmzf);src:url(font/context-menu-icons.eot?2qmzf#iefix)
 format("embedded-opentype"),url(font/context-menu-icons.woff2?2qmzf) 
format("woff2"),url(font/context-menu-icons.woff?2qmzf) 
format("woff"),url(font/context-menu-icons.ttf?2qmzf) 
format("truetype")}.context-menu-icon:before{position:absolute;top:50%;left:0;width:28px;font-family:context-menu-icons;font-size:16px;font-style:normal;font-weight:400;line-height:1;color:#2980b9;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.context-menu-icon-add:before{content:""}.context-menu-icon-copy:before{content:""}.context-menu-icon-cut:before{content:""}.context-menu-icon-delete:before{content:""}.context-menu-icon-edit:before{content:""}.context-menu-icon-paste:before{content:""}.context-menu-icon-quit:before{content:""}.context-menu-icon.context-menu-hover:before{color:#fff}.context-menu-list{position:absolute;display:inline-block;min-width:180px;max-width:360px;padding:4px
 
0;margin:5px;font-family:inherit;font-size:inherit;list-style-type:none;background:#fff;border:1px
 solid #bebebe;border-radius:3px;-webkit-box-shadow:0 2px 5px 
rgba(0,0,0,.5);box-shadow:0 2px 5px 
rgba(0,0,0,.5)}.context-menu-item{position:relative;padding:3px 
28px;color:#2f2f2f;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.context-menu-separator{padding:0;margin:5px
 0;border-bottom:1px solid 
#e6e6e6}.context-menu-item>label>input,.context-menu-item>label>textarea{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.context-menu-item.context-menu-hover{color:#fff;cursor:pointer;background-color:#2980b9}.context-menu-item.context-menu-disabled{background-color:#fff;color:#626262}.context-menu-input.context-menu-hover,.context-menu-item.context-menu-disabled.context-menu-hover{cursor:default;background-color:#eee}.context-menu-submenu:after{position:absolute;top:50%;right:8px;z-index:1;width:0;height:0;content:'';border-color:transparent
 transparent transparent #2f2f2f;border-style:solid;border-width:4px 0 4px 
4px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.context-menu-item.context-menu-input{padding:5px
 
10px}.context-menu-input>label>*{vertical-align:top}.context-menu-input>label>input[type=checkbox],.context-menu-input>label>input[type=radio]{position:relative;top:3px}.context-menu-input>label,.context-menu-input>label>input[type=text],.context-menu-input>label>select,.context-menu-input>label>textarea{display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.context-menu-input>label>textarea{height:100px}.context-menu-item>.context-menu-list{top:5px;right:-5px;display:none}.context-menu-item.context-menu-visible>.context-menu-list{display:block}.context-menu-accesskey{text-decoration:underline}
+ * Date: 2017-01-21T11:53:09.375Z
+ */@-webkit-keyframes cm-spin{0%{-webkit-transform:translateY(-50%) 
rotate(0);transform:translateY(-50%) 
rotate(0)}100%{-webkit-transform:translateY(-50%) 
rotate(359deg);transform:translateY(-50%) rotate(359deg)address@hidden 
cm-spin{0%{-webkit-transform:translateY(-50%) 
rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) 
rotate(0)}100%{-webkit-transform:translateY(-50%) 
rotate(359deg);-o-transform:translateY(-50%) 
rotate(359deg);transform:translateY(-50%) rotate(359deg)address@hidden 
cm-spin{0%{-webkit-transform:translateY(-50%) 
rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) 
rotate(0)}100%{-webkit-transform:translateY(-50%) 
rotate(359deg);-o-transform:translateY(-50%) 
rotate(359deg);transform:translateY(-50%) 
rotate(359deg)}}.context-menu-icon.context-menu-icon--fa::before,.context-menu-icon::before{left:0;width:2em;font-size:1em;font-style:normal;font-weight:400;line-height:1;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:address@hidden:context-menu-icons;font-style:normal;font-weight:400;src:url(font/context-menu-icons.eot?4rkwk);src:url(font/context-menu-icons.eot?4rkwk#iefix)
 format("embedded-opentype"),url(font/context-menu-icons.woff2?4rkwk) 
format("woff2"),url(font/context-menu-icons.woff?4rkwk) 
format("woff"),url(font/context-menu-icons.ttf?4rkwk) 
format("truetype")}.context-menu-icon-add:before{content:"\EA01"}.context-menu-icon-copy:before{content:"\EA02"}.context-menu-icon-cut:before{content:"\EA03"}.context-menu-icon-delete:before{content:"\EA04"}.context-menu-icon-edit:before{content:"\EA05"}.context-menu-icon-loading:before{content:"\EA06"}.context-menu-icon-paste:before{content:"\EA07"}.context-menu-icon-quit:before{content:"\EA08"}.context-menu-icon::before{font-family:context-menu-icons;color:#2980b9;transform:translateY(-50%)}.context-menu-icon.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-disabled::before{color:#bbb}.context-menu-icon.context-menu-icon-loading:before{-webkit-animation:cm-spin
 2s infinite;-o-animation:cm-spin 2s infinite;animation:cm-spin 2s 
infinite}.context-menu-icon.context-menu-icon--fa{display:list-item;font-family:inherit}.context-menu-icon.context-menu-icon--fa::before{font-family:FontAwesome;color:#2980b9;transform:translateY(-50%)}.context-menu-icon.context-menu-icon--fa.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before{color:#bbb}.context-menu-list{position:absolute;display:inline-block;min-width:13em;max-width:26em;padding:.25em
 
0;margin:.3em;font-family:inherit;font-size:inherit;list-style-type:none;background:#fff;border:1px
 solid #bebebe;border-radius:.2em;-webkit-box-shadow:0 2px 5px 
rgba(0,0,0,.5);box-shadow:0 2px 5px 
rgba(0,0,0,.5)}.context-menu-item{position:relative;padding:.2em 
2em;color:#2f2f2f;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.context-menu-separator{padding:0;margin:.35em
 0;border-bottom:1px solid 
#e6e6e6}.context-menu-item>label>input,.context-menu-item>label>textarea{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.context-menu-item.context-menu-hover{color:#fff;cursor:pointer;background-color:#2980b9}.context-menu-item.context-menu-disabled{color:#bbb;cursor:default;background-color:#fff}.context-menu-input.context-menu-hover{color:#2f2f2f;cursor:default}.context-menu-submenu:after{position:absolute;top:50%;right:.5em;z-index:1;width:0;height:0;content:'';border-color:transparent
 transparent transparent #2f2f2f;border-style:solid;border-width:.25em 0 .25em 
.25em;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.context-menu-item.context-menu-input{padding:.3em
 
.6em}.context-menu-input>label>*{vertical-align:top}.context-menu-input>label>input[type=checkbox],.context-menu-input>label>input[type=radio]{position:relative;top:.12em;margin-right:.4em}.context-menu-input>label{margin:0}.context-menu-input>label,.context-menu-input>label>input[type=text],.context-menu-input>label>select,.context-menu-input>label>textarea{display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.context-menu-input>label>textarea{height:7em}.context-menu-item>.context-menu-list{top:.3em;right:-.3em;display:none}.context-menu-item.context-menu-visible>.context-menu-list{display:block}.context-menu-accesskey{text-decoration:underline}
 /*# sourceMappingURL=jquery.contextMenu.min.css.map */

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css.map
===================================================================
--- 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css.map
  2017-02-17 09:16:49 UTC (rev 16330)
+++ 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.css.map
  2017-02-17 09:20:25 UTC (rev 16331)
@@ -1 +1 @@
-{"version":3,"sources":["jquery.contextMenu.css","jquery.contextMenu.min.css"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBA,WACE,YAAA,mBACA,WAAA,OACA,YAAA,IAEA,IAAA,uCCCA,IAAK,6CAA4C,4BAA6B,yCAAwC,gBAAiB,wCAAuC,eAAgB,uCAAsC,mBAGtO,0BDCE,SAAA,SACA,IAAA,IACA,KAAA,EACA,MAAA,KACA,YAAA,mBACA,UAAA,KACA,WAAA,OACA,YAAS,IACT,YAAA,ECCA,MDDA,QCEA,WDFA,OCGA,kBDHA,iBACA,cAAA,iBACA,aAAA,iBACA,UAAc,iBAEhB,uBAAA,YACE,wBAAe,UCMjB,8BACE,QAAS,IAGX,+BDFA,QAAA,IAGA,8BACE,QAAA,ICMF,iCACE,QAAS,IAGX,+BDFA,QAAA,IAGA,gCACE,QAAA,ICMF,+BACE,QDJA,ICOF,6CDHE,MAAA,KCOF,mBDHE,SAAA,SACA,QAAA,aCKA,UAAW,MDHb,UAAA,MACE,QAAA,IAAA,EACA,OAAA,IACA,YAAA,QACA,UAAA,QACA,gBAAA,KCKA,WDLA,KCMA,ODNA,IAAA,MAAA,QCOA,cDPA,ICQA,mBAAoB,EAAE,IAAI,IAAI,eDNhC,WAAA,EAAA,IAAA,IAAA,eCUA,mBACE,SAAU,SDNZ,QAAA,IAAA,KCQE,MAAO,QDNP,oBAAA,KAAA,iBAAA,KAAA,gBAAA,KAAA,YAAA,KCWA,iBAAkB,KAGpB,wBDTE,QAAA,ECWA,OAAQ,IAAI,EDTd,cAAA,IAAA,MAAA,QCaA,+BDTA,kCACE,oBAAiB,KCWd,iBAAkB,KDTvB,gBAAA,KCWU,YAAa,KAGvB,sCDTA,MAAA,KACE,OAAA,QACA,iBAAA,QCaF,yCDRE,iBAAW,KCcX,MDZA,QCeF,uCACA,4DDZA,OAAA,QCcE,iBAAkB,KAGpB,4BACE,SAAU,SDZZ,IAAA,IACA,MAAA,IACE,QAAA,ECcA,MAAO,EDZT,OAAA,EACA,QAAA,GCcE,aAAc,YAAY,YAAY,YAAY,QDZlD,aAAA,MACA,aAAW,IAAA,EAAA,IAAA,ICcX,kBAAmB,iBDZrB,cAAA,iBCcO,aAAc,iBACX,UAAW,iBAMrB,sCACE,QAAS,IAAI,KDXf,4BACE,eAAc,ICmBhB,+CDdA,4CACE,SAAA,SCgBA,IAAK,IAGP,0BACA,2CAEA,iCADA,mCAEE,QAAS,MACT,MAAO,KACP,mBAAoB,WACjB,gBAAiB,WACZ,WAAY,WAGtB,mCACE,OAAQ,MAGV,sCACE,IAAK,IAEL,MAAuH,KACvH,QAAS,KAGX,2DACE,QAAS,MAGX,wBACE,gBAAiB","file":"jquery.contextMenu.min.css","sourcesContent":["@charset
 \"UTF-8\";\n/*!\r\n * jQuery contextMenu - Plugin for simple contextMenu 
handling\r\n *\r\n * Version: v2.1.0\r\n *\r\n * Authors: Björn Brala 
(SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)\r\n * Web: 
http://swisnl.github.io/jQuery-contextMenu/\r\n *\r\n * Copyright (c) 2011-2016 
SWIS BV and contributors\r\n *\r\n * Licensed under\r\n *   MIT License 
http://www.opensource.org/licenses/mit-license\r\n *\r\n * Date: 
2016-02-14T06:48:49.039Z\r\n */address@hidden {\n  font-family: 
\"context-menu-icons\";\n  src: url(\"font/context-menu-icons.eot?2qmzf\");\n  
src: url(\"font/context-menu-icons.eot?2qmzf#iefix\") 
format(\"embedded-opentype\"), url(\"font/context-menu-icons.woff2?2qmzf\") 
format(\"woff2\"), url(\"font/context-menu-icons.woff?2qmzf\") 
format(\"woff\"), url(\"font/context-menu-icons.ttf?2qmzf\") 
format(\"truetype\");\n  font-weight: normal;\n  font-style: normal; 
}\n\n.context-menu-icon:before {\n  color: #2980B9;\n  font-family: 
\"context-menu-icons\";\n  font-style: normal;\n  font-weight: normal;\n  
font-size: 16px;\n  left: 0;\n  line-height: 1;\n  position: absolute;\n  
text-align: center;\n  top: 50%;\n  transform: translateY(-50%);\n  
-webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  
width: 28px; }\n\n.context-menu-icon-add:before {\n  content: \"\"; 
}\n\n.context-menu-icon-copy:before {\n  content: \"\"; 
}\n\n.context-menu-icon-cut:before {\n  content: \"\"; 
}\n\n.context-menu-icon-delete:before {\n  content: \"\"; 
}\n\n.context-menu-icon-edit:before {\n  content: \"\"; 
}\n\n.context-menu-icon-paste:before {\n  content: \"\"; 
}\n\n.context-menu-icon-quit:before {\n  content: \"\"; 
}\n\n.context-menu-icon.context-menu-hover:before {\n  color: #FFF; 
}\n\n.context-menu-list {\n  background: #FFF;\n  border: 1px solid #bebebe;\n  
border-radius: 3px;\n  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\n  
font-family: inherit;\n  font-size: inherit;\n  display: inline-block;\n  
list-style-type: none;\n  margin: 5px;\n  max-width: 360px;\n  min-width: 
180px;\n  padding: 4px 0;\n  position: absolute; }\n\n.context-menu-item {\n  
background-color: #FFF;\n  color: #2F2F2F;\n  padding: 3px 28px;\n  position: 
relative;\n  user-select: none; }\n\n.context-menu-separator {\n  
border-bottom: 1px solid #e6e6e6;\n  margin: 5px 0;\n  padding: 0; 
}\n\n.context-menu-item > label > input,\n.context-menu-item > label > textarea 
{\n  user-select: text; }\n\n.context-menu-item.context-menu-hover {\n  
background-color: #2980B9;\n  color: #FFF;\n  cursor: pointer; 
}\n\n.context-menu-item.context-menu-disabled {\n  background-color: #FFF;\n  
color: #626262; }\n\n.context-menu-item.context-menu-disabled {\n  color: 
#626262; 
}\n\n.context-menu-input.context-menu-hover,\n.context-menu-item.context-menu-disabled.context-menu-hover
 {\n  background-color: #EEE;\n  cursor: default; 
}\n\n.context-menu-submenu:after {\n  content: '';\n  border-style: solid;\n  
border-width: 4px 0 4px 4px;\n  border-color: transparent transparent 
transparent #2F2F2F;\n  height: 0;\n  position: absolute;\n  right: 8px;\n  
top: 50%;\n  transform: translateY(-50%);\n  width: 0;\n  z-index: 1; 
}\n\n/**\r\n * Inputs\r\n */\n.context-menu-item.context-menu-input {\n  
padding: 5px 10px; }\n\n/* vertically align inside labels 
*/\n.context-menu-input > label > * {\n  vertical-align: top; }\n\n/* position 
checkboxes and radios as icons */\n.context-menu-input > label > 
input[type=\"checkbox\"],\n.context-menu-input > label > input[type=\"radio\"] 
{\n  position: relative;\n  top: 3px; }\n\n.context-menu-input > 
label,\n.context-menu-input > label > 
input[type=\"text\"],\n.context-menu-input > label > 
textarea,\n.context-menu-input > label > select {\n  box-sizing: border-box;\n  
display: block;\n  width: 100%; }\n\n.context-menu-input > label > textarea {\n 
 height: 100px; }\n\n.context-menu-item > .context-menu-list {\n  display: 
none;\n  /* re-positioned by js */\n  right: -5px;\n  top: 5px; 
}\n\n.context-menu-item.context-menu-visible > .context-menu-list {\n  display: 
block; }\n\n.context-menu-accesskey {\n  text-decoration: underline; 
}\n","@charset \"UTF-8\";/*!\r\n * jQuery contextMenu - Plugin for simple 
contextMenu handling\r\n *\r\n * Version: v2.1.0\r\n *\r\n * Authors: Björn 
Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)\r\n * Web: 
http://swisnl.github.io/jQuery-contextMenu/\r\n *\r\n * Copyright (c) 2011-2016 
SWIS BV and contributors\r\n *\r\n * Licensed under\r\n *   MIT License 
http://www.opensource.org/licenses/mit-license\r\n *\r\n * Date: 
2016-01-08T20:22:20.182Z\r\n 
*/@font-face{font-family:context-menu-icons;font-style:normal;font-weight:400;src:url(font/context-menu-icons.eot?4cx9p);src:url(font/context-menu-icons.eot?4cx9p#iefix)
 format(\"embedded-opentype\"),url(font/context-menu-icons.woff2?4cx9p) 
format(\"woff2\"),url(font/context-menu-icons.woff?4cx9p) 
format(\"woff\"),url(font/context-menu-icons.ttf?4cx9p) 
format(\"truetype\")}.context-menu-icon:before{position:absolute;top:50%;left:0;width:28px;font-family:context-menu-icons;font-size:16px;font-style:normal;font-weight:400;line-height:1;color:#2980b9;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.context-menu-icon-add:before{content:\"\"}.context-menu-icon-copy:before{content:\"\"}.context-menu-icon-cut:before{content:\"\"}.context-menu-icon-delete:before{content:\"\"}.context-menu-icon-edit:before{content:\"\"}.context-menu-icon-paste:before{content:\"\"}.context-menu-icon-quit:before{content:\"\"}.context-menu-icon.context-menu-hover:before{color:#fff}.context-menu-list{position:absolute;display:inline-block;min-width:180px;max-width:360px;padding:4px
 
0;margin:5px;font-family:inherit;font-size:inherit;list-style-type:none;background:#fff;border:1px
 solid #bebebe;border-radius:3px;-webkit-box-shadow:0 2px 5px 
rgba(0,0,0,.5);box-shadow:0 2px 5px 
rgba(0,0,0,.5)}.context-menu-item{position:relative;padding:3px 
28px;color:#2f2f2f;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.context-menu-separator{padding:0;margin:5px
 0;border-bottom:1px solid 
#e6e6e6}.context-menu-item>label>input,.context-menu-item>label>textarea{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.context-menu-item.context-menu-hover{color:#fff;cursor:pointer;background-color:#2980b9}.context-menu-item.context-menu-disabled{background-color:#fff;color:#626262}.context-menu-input.context-menu-hover,.context-menu-item.context-menu-disabled.context-menu-hover{cursor:default;background-color:#eee}.context-menu-submenu:after{position:absolute;top:50%;right:8px;z-index:1;width:0;height:0;content:'';border-color:transparent
 transparent transparent #2f2f2f;border-style:solid;border-width:4px 0 4px 
4px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.context-menu-item.context-menu-input{padding:5px
 
10px}.context-menu-input>label>*{vertical-align:top}.context-menu-input>label>input[type=checkbox],.context-menu-input>label>input[type=radio]{position:relative;top:3px}.context-menu-input>label,.context-menu-input>label>input[type=text],.context-menu-input>label>select,.context-menu-input>label>textarea{display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.context-menu-input>label>textarea{height:100px}.context-menu-item>.context-menu-list{top:5px;right:-5px;display:none}.context-menu-item.context-menu-visible>.context-menu-list{display:block}.context-menu-accesskey{text-decoration:underline}\r\n/*#
 sourceMappingURL=jquery.contextMenu.min.css.map 
*/\r\n"],"sourceRoot":"/source/"}
\ No newline at end of file
+{"version":3,"sources":["jquery.contextMenu.css","jquery.contextMenu.min.css"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBA,2BACE,GACE,kBAAA,iBAAA,UACA,UAAA,iBAAA,UCEF,KDCE,kBAAA,iBAAA,eANJ,UAAA,iBAAA,gBCUA,sBACE,GDPA,kBAAA,iBAAA,UACE,aAAA,iBAAA,UACA,UAAA,iBAAA,UANJ,KACE,kBAAA,iBAAA,eACE,aAAA,iBAAA,eACA,UAAA,iBAAA,gBCmBJ,mBACE,GACE,kBDlBA,iBAAA,UCmBK,aAAc,iBAAiB,UDjBxC,UAAA,iBAAA,UAEE,KACA,kBAAA,iBAAA,eACA,aAAoB,iBAAA,eACpB,UAAqB,iBAAA,gBCsGvB,iDD5DA,2BC+DE,KAAM,ED1BN,MAAA,IAEA,UAAA,IACA,WAAA,OACA,YAAA,IACA,YAAA,EAEA,WAAA,OAlCA,kBAAmB,iBACnB,cAAA,iBACA,aAAA,iBAsCA,uBAAmB,YACnB,wBAAmB,UCqCnB,SAAU,SA4DV,IAAK,IAxKP,WDjBA,YAAA,mBACE,WAAA,OCmBA,YAAa,IDhBb,IAAA,uCCmBA,IAAK,6CAA8C,4BAA6B,yCAA0C,gBAAiB,wCAAyC,eAAgB,uCAAwC,mBAG9O,8BDjBA,QAAA,QAGA,+BACE,QAAA,QCqBF,8BACE,QAAS,QAGX,iCDjBA,QAAA,QCqBA,+BDjBE,QAAA,QCqBF,kCDjBE,QAAA,QCqBF,gCACE,QDnBA,QCsBF,+BDpBE,QAAA,QAGF,2BC0BE,YAAa,mBAKb,MAAO,QDlBL,UAAe,iBC6BnB,6CACE,MDvBE,KC0BJ,iDACE,MDxBE,KC2BJ,oDACE,kBD1BE,QAAA,GAAA,SACA,aAAa,QAAA,GAAA,SACf,UAAA,QAAA,GAAA,SC6BF,yCACE,QAAS,UDzBX,YAAA,QC4BA,iDDtBE,YAAA,YAKA,MAAA,QAKA,UAAA,iBCgCF,mEACE,MD7BA,KC+BF,uED7BA,MAAA,KCiCA,mBACE,SAAU,SD7BZ,QAAA,aC+BE,UAAW,KD7BX,UAAA,KC+BA,QD/BA,MAAA,ECgCA,ODhCA,KCiCA,YDjCA,QCkCA,UAAW,QDhCb,gBAAA,KACE,WAAA,KACA,OAAA,IAAY,MAAA,QACZ,cAAA,KCkCA,mBAAoB,EAAE,IAAI,IAAI,eDhChC,WAAA,EAAA,IAAA,IAAA,eCoCA,mBACE,SAAU,SDhCZ,QAAA,KAAA,IACE,MAAA,QACA,oBAAiB,KCkCd,iBAAkB,KDhCvB,gBAAA,KACE,YAAY,KACZ,iBAAA,KCoCF,wBDhCE,QAAA,EACA,OAAA,MAAY,EACZ,cAAS,IAAA,MAAA,QCoCX,+BACA,kCDnCE,oBAAS,KACT,iBAAa,KCqCT,gBAAiB,KDnCvB,YAAA,KAGA,sCACE,MAAA,KCqCA,OAAQ,QDnCV,iBAAA,QCuCA,yCDnCA,MAAA,KACA,OAAA,QCqCE,iBAAkB,KAGpB,uCACE,MAAO,QDnCT,OAAA,QAGA,4BCqCE,SAAU,SACV,IAAK,IACL,MAAO,KDnCP,QAAA,ECqCA,MDrCA,ECsCA,ODtCA,EACA,QAAA,GACA,aAAc,YAAA,YAAA,YAAA,QCuCd,aAAc,MDrChB,aAAA,MAAA,EAAA,MAAA,MACE,kBAAc,iBCuCV,cAAe,iBDrCrB,aAAA,iBACE,UAAc,iBC4ChB,sCACE,QAAS,KAAK,KAIhB,4BACE,eAAgB,IAIlB,+CACA,4CACE,SAAU,SACV,IAAK,MACL,aAAc,KAGhB,0BACE,OAAQ,EAGV,0BACA,2CAEA,iCADA,mCAEE,QAAS,MACT,MAAO,KACP,mBAAoB,WACjB,gBAAiB,WACZ,WAAY,WAGtB,mCACE,OAAQ,IAGV,sCACE,IAAK,KAEL,MAAuH,MACvH,QAAS,KAGX,2DACE,QAAS,MAGX,wBACE,gBAAiB","file":"jquery.contextMenu.min.css","sourcesContent":["@charset
 \"UTF-8\";\n/*!\r\n * jQuery contextMenu - Plugin for simple contextMenu 
handling\r\n *\r\n * Version: v2.4.3-dev\r\n *\r\n * Authors: Björn Brala 
(SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)\r\n * Web: 
http://swisnl.github.io/jQuery-contextMenu/\r\n *\r\n * Copyright (c) 2011-2017 
SWIS BV and contributors\r\n *\r\n * Licensed under\r\n *   MIT License 
http://www.opensource.org/licenses/mit-license\r\n *\r\n * Date: 
2017-01-21T11:53:09.375Z\r\n */address@hidden cm-spin {\n  0% {\n    
-webkit-transform: translateY(-50%) rotate(0deg);\n    transform: 
translateY(-50%) rotate(0deg); }\n  100% {\n    -webkit-transform: 
translateY(-50%) rotate(359deg);\n    transform: translateY(-50%) 
rotate(359deg); } address@hidden {\n  font-family: \"context-menu-icons\";\n  
src: url(\"font/context-menu-icons.eot?4rkwk\");\n  src: 
url(\"font/context-menu-icons.eot?4rkwk#iefix\") format(\"embedded-opentype\"), 
url(\"font/context-menu-icons.woff2?4rkwk\") format(\"woff2\"), 
url(\"font/context-menu-icons.woff?4rkwk\") format(\"woff\"), 
url(\"font/context-menu-icons.ttf?4rkwk\") format(\"truetype\");\n  
font-weight: normal;\n  font-style: normal; }\n\n.context-menu-icon-add:before 
{\n  content: \"\\EA01\"; }\n\n.context-menu-icon-copy:before {\n  content: 
\"\\EA02\"; }\n\n.context-menu-icon-cut:before {\n  content: \"\\EA03\"; 
}\n\n.context-menu-icon-delete:before {\n  content: \"\\EA04\"; 
}\n\n.context-menu-icon-edit:before {\n  content: \"\\EA05\"; 
}\n\n.context-menu-icon-loading:before {\n  content: \"\\EA06\"; 
}\n\n.context-menu-icon-paste:before {\n  content: \"\\EA07\"; 
}\n\n.context-menu-icon-quit:before {\n  content: \"\\EA08\"; 
}\n\n.context-menu-icon::before {\n  color: #2980B9;\n  font-family: 
\"context-menu-icons\";\n  font-style: normal;\n  font-weight: normal;\n  
font-size: 1em;\n  left: 0;\n  line-height: 1;\n  position: absolute;\n  
text-align: center;\n  top: 50%;\n  transform: translateY(-50%);\n  
-webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  
width: 2em; }\n\n.context-menu-icon.context-menu-hover:before {\n  color: #FFF; 
}\n\n.context-menu-icon.context-menu-disabled::before {\n  color: #bbbbbb; 
}\n\n.context-menu-icon.context-menu-icon-loading:before {\n  animation: 
cm-spin 2s infinite; }\n\n.context-menu-icon.context-menu-icon--fa {\n  
display: list-item;\n  font-family: inherit; }\n  
.context-menu-icon.context-menu-icon--fa::before {\n    color: #2980B9;\n    
font-family: FontAwesome;\n    font-style: normal;\n    font-weight: normal;\n  
  font-size: 1em;\n    left: 0;\n    line-height: 1;\n    position: absolute;\n 
   text-align: center;\n    top: 50%;\n    transform: translateY(-50%);\n    
-webkit-font-smoothing: antialiased;\n    -moz-osx-font-smoothing: grayscale;\n 
   width: 2em; }\n  
.context-menu-icon.context-menu-icon--fa.context-menu-hover:before {\n    
color: #FFF; }\n  
.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before {\n    
color: #bbbbbb; }\n\n.context-menu-list {\n  background: #FFF;\n  border: 1px 
solid #bebebe;\n  border-radius: 0.2em;\n  box-shadow: 0 2px 5px rgba(0, 0, 0, 
0.5);\n  font-family: inherit;\n  font-size: inherit;\n  display: 
inline-block;\n  list-style-type: none;\n  margin: 0.3em;\n  max-width: 26em;\n 
 min-width: 13em;\n  padding: 0.25em 0;\n  position: absolute; 
}\n\n.context-menu-item {\n  background-color: #FFF;\n  color: #2F2F2F;\n  
padding: 0.2em 2em;\n  position: relative;\n  user-select: none; 
}\n\n.context-menu-separator {\n  border-bottom: 1px solid #e6e6e6;\n  margin: 
0.35em 0;\n  padding: 0; }\n\n.context-menu-item > label > 
input,\n.context-menu-item > label > textarea {\n  user-select: text; 
}\n\n.context-menu-item.context-menu-hover {\n  background-color: #2980B9;\n  
color: #FFF;\n  cursor: pointer; }\n\n.context-menu-item.context-menu-disabled 
{\n  background-color: #FFF;\n  color: #bbbbbb;\n  cursor: default; 
}\n\n.context-menu-input.context-menu-hover {\n  cursor: default;\n  color: 
#2F2F2F; }\n\n.context-menu-submenu:after {\n  content: '';\n  border-style: 
solid;\n  border-width: .25em 0 .25em .25em;\n  border-color: transparent 
transparent transparent #2F2F2F;\n  height: 0;\n  position: absolute;\n  right: 
.5em;\n  top: 50%;\n  transform: translateY(-50%);\n  width: 0;\n  z-index: 1; 
}\n\n/**\r\n * Inputs\r\n */\n.context-menu-item.context-menu-input {\n  
padding: .3em .6em; }\n\n/* vertically align inside labels 
*/\n.context-menu-input > label > * {\n  vertical-align: top; }\n\n/* position 
checkboxes and radios as icons */\n.context-menu-input > label > 
input[type=\"checkbox\"],\n.context-menu-input > label > input[type=\"radio\"] 
{\n  margin-right: .4em;\n  position: relative;\n  top: .12em; 
}\n\n.context-menu-input > label {\n  margin: 0; }\n\n.context-menu-input > 
label,\n.context-menu-input > label > 
input[type=\"text\"],\n.context-menu-input > label > 
textarea,\n.context-menu-input > label > select {\n  box-sizing: border-box;\n  
display: block;\n  width: 100%; }\n\n.context-menu-input > label > textarea {\n 
 height: 7em; }\n\n.context-menu-item > .context-menu-list {\n  display: 
none;\n  /* re-positioned by js */\n  right: -.3em;\n  top: .3em; 
}\n\n.context-menu-item.context-menu-visible > .context-menu-list {\n  display: 
block; }\n\n.context-menu-accesskey {\n  text-decoration: underline; 
}\n","@charset \"UTF-8\";/*!\r\n * jQuery contextMenu - Plugin for simple 
contextMenu handling\r\n *\r\n * Version: v2.4.3-dev\r\n *\r\n * Authors: Björn 
Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)\r\n * Web: 
http://swisnl.github.io/jQuery-contextMenu/\r\n *\r\n * Copyright (c) 2011-2017 
SWIS BV and contributors\r\n *\r\n * Licensed under\r\n *   MIT License 
http://www.opensource.org/licenses/mit-license\r\n *\r\n * Date: 
2017-01-21T11:52:26.722Z\r\n */@-webkit-keyframes 
cm-spin{0%{-webkit-transform:translateY(-50%) 
rotate(0);transform:translateY(-50%) 
rotate(0)}100%{-webkit-transform:translateY(-50%) 
rotate(359deg);transform:translateY(-50%) rotate(359deg)address@hidden 
cm-spin{0%{-webkit-transform:translateY(-50%) 
rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) 
rotate(0)}100%{-webkit-transform:translateY(-50%) 
rotate(359deg);-o-transform:translateY(-50%) 
rotate(359deg);transform:translateY(-50%) rotate(359deg)address@hidden 
cm-spin{0%{-webkit-transform:translateY(-50%) 
rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) 
rotate(0)}100%{-webkit-transform:translateY(-50%) 
rotate(359deg);-o-transform:translateY(-50%) 
rotate(359deg);transform:translateY(-50%) 
rotate(359deg)}}.context-menu-icon.context-menu-icon--fa::before,.context-menu-icon::before{left:0;width:2em;font-size:1em;font-style:normal;font-weight:400;line-height:1;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:address@hidden:context-menu-icons;font-style:normal;font-weight:400;src:url(font/context-menu-icons.eot?4rkwk);src:url(font/context-menu-icons.eot?4rkwk#iefix)
 format(\"embedded-opentype\"),url(font/context-menu-icons.woff2?4rkwk) 
format(\"woff2\"),url(font/context-menu-icons.woff?4rkwk) 
format(\"woff\"),url(font/context-menu-icons.ttf?4rkwk) 
format(\"truetype\")}.context-menu-icon-add:before{content:\"\\EA01\"}.context-menu-icon-copy:before{content:\"\\EA02\"}.context-menu-icon-cut:before{content:\"\\EA03\"}.context-menu-icon-delete:before{content:\"\\EA04\"}.context-menu-icon-edit:before{content:\"\\EA05\"}.context-menu-icon-loading:before{content:\"\\EA06\"}.context-menu-icon-paste:before{content:\"\\EA07\"}.context-menu-icon-quit:before{content:\"\\EA08\"}.context-menu-icon::before{font-family:context-menu-icons;color:#2980b9;transform:translateY(-50%)}.context-menu-icon.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-disabled::before{color:#bbb}.context-menu-icon.context-menu-icon-loading:before{-webkit-animation:cm-spin
 2s infinite;-o-animation:cm-spin 2s infinite;animation:cm-spin 2s 
infinite}.context-menu-icon.context-menu-icon--fa{display:list-item;font-family:inherit}.context-menu-icon.context-menu-icon--fa::before{font-family:FontAwesome;color:#2980b9;transform:translateY(-50%)}.context-menu-icon.context-menu-icon--fa.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before{color:#bbb}.context-menu-list{position:absolute;display:inline-block;min-width:13em;max-width:26em;padding:.25em
 
0;margin:.3em;font-family:inherit;font-size:inherit;list-style-type:none;background:#fff;border:1px
 solid #bebebe;border-radius:.2em;-webkit-box-shadow:0 2px 5px 
rgba(0,0,0,.5);box-shadow:0 2px 5px 
rgba(0,0,0,.5)}.context-menu-item{position:relative;padding:.2em 
2em;color:#2f2f2f;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.context-menu-separator{padding:0;margin:.35em
 0;border-bottom:1px solid 
#e6e6e6}.context-menu-item>label>input,.context-menu-item>label>textarea{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.context-menu-item.context-menu-hover{color:#fff;cursor:pointer;background-color:#2980b9}.context-menu-item.context-menu-disabled{color:#bbb;cursor:default;background-color:#fff}.context-menu-input.context-menu-hover{color:#2f2f2f;cursor:default}.context-menu-submenu:after{position:absolute;top:50%;right:.5em;z-index:1;width:0;height:0;content:'';border-color:transparent
 transparent transparent #2f2f2f;border-style:solid;border-width:.25em 0 .25em 
.25em;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.context-menu-item.context-menu-input{padding:.3em
 
.6em}.context-menu-input>label>*{vertical-align:top}.context-menu-input>label>input[type=checkbox],.context-menu-input>label>input[type=radio]{position:relative;top:.12em;margin-right:.4em}.context-menu-input>label{margin:0}.context-menu-input>label,.context-menu-input>label>input[type=text],.context-menu-input>label>select,.context-menu-input>label>textarea{display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.context-menu-input>label>textarea{height:7em}.context-menu-item>.context-menu-list{top:.3em;right:-.3em;display:none}.context-menu-item.context-menu-visible>.context-menu-list{display:block}.context-menu-accesskey{text-decoration:underline}\r\n/*#
 sourceMappingURL=jquery.contextMenu.min.css.map */\r\n"]}
\ No newline at end of file

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js
===================================================================
--- 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js   
    2017-02-17 09:16:49 UTC (rev 16330)
+++ 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js   
    2017-02-17 09:20:25 UTC (rev 16331)
@@ -1,18 +1,18 @@
 /*!
- * jQuery contextMenu v2.1.0 - Plugin for simple contextMenu handling
+ * jQuery contextMenu v2.4.3-dev - Plugin for simple contextMenu handling
  *
- * Version: v2.1.0
+ * Version: v2.4.3-dev
  *
  * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
  * Web: http://swisnl.github.io/jQuery-contextMenu/
  *
- * Copyright (c) 2011-2016 SWIS BV and contributors
+ * Copyright (c) 2011-2017 SWIS BV and contributors
  *
  * Licensed under
  *   MIT License http://www.opensource.org/licenses/mit-license
  *   GPL v3 http://opensource.org/licenses/GPL-3.0
  *
- * Date: 2016-02-14T06:53:14.258Z
+ * Date: 2017-01-21T11:53:09.617Z
  */
-!function(e){"function"==typeof 
define&&define.amd?define(["jquery"],e):e("object"==typeof 
exports?require("jquery"):jQuery)}(function(e){"use strict";function 
t(e){for(var 
t,n=e.split(/\s+/),a=[],o=0;t=n[o];o++)t=t.charAt(0).toUpperCase(),a.push(t);return
 a}function n(t){return t.id&&e('label[for="'+t.id+'"]').val()||t.name}function 
a(t,o,s){return s||(s=0),o.each(function(){var 
o,i,c=e(this),r=this,l=this.nodeName.toLowerCase();switch("label"===l&&c.find("input,
 textarea, 
select").length&&(o=c.text(),c=c.children().first(),r=c.get(0),l=r.nodeName.toLowerCase()),l){case"menu":i={name:c.attr("label"),items:{}},s=a(i.items,c.children(),s);break;case"a":case"button":i={name:c.text(),disabled:!!c.attr("disabled"),callback:function(){return
 
function(){c.click()}}()};break;case"menuitem":case"command":switch(c.attr("type")){case
 void 
0:case"command":case"menuitem":i={name:c.attr("label"),disabled:!!c.attr("disabled"),icon:c.attr("icon"),callback:function(){return
 
function(){c.click()}}()};break;case"checkbox":i={type:"checkbox",disabled:!!c.attr("disabled"),name:c.attr("label"),selected:!!c.attr("checked")};break;case"radio":i={type:"radio",disabled:!!c.attr("disabled"),name:c.attr("label"),radio:c.attr("radiogroup"),value:c.attr("id"),selected:!!c.attr("checked")};break;default:i=void
 
0}break;case"hr":i="-------";break;case"input":switch(c.attr("type")){case"text":i={type:"text",name:o||n(r),disabled:!!c.attr("disabled"),value:c.val()};break;case"checkbox":i={type:"checkbox",name:o||n(r),disabled:!!c.attr("disabled"),selected:!!c.attr("checked")};break;case"radio":i={type:"radio",name:o||n(r),disabled:!!c.attr("disabled"),radio:!!c.attr("name"),value:c.val(),selected:!!c.attr("checked")};break;default:i=void
 
0}break;case"select":i={type:"select",name:o||n(r),disabled:!!c.attr("disabled"),selected:c.val(),options:{}},c.children().each(function(){i.options[this.value]=e(this).text()});break;case"textarea":i={type:"textarea",name:o||n(r),disabled:!!c.attr("disabled"),value:c.val()};break;case"label":break;default:i={type:"html",html:c.clone(!0)}}i&&(s++,t["key"+s]=i)}),s}e.support.htmlMenuitem="HTMLMenuItemElement"in
 window,e.support.htmlCommand="HTMLCommandElement"in 
window,e.support.eventSelectstart="onselectstart"in 
document.documentElement,e.ui&&e.widget||(e.cleanData=function(t){return 
function(n){var 
a,o,s;for(s=0;null!=n[s];s++){o=n[s];try{a=e._data(o,"events"),a&&a.remove&&e(o).triggerHandler("remove")}catch(i){}}t(n)}}(e.cleanData));var
 
o=null,s=!1,i=e(window),c=0,r={},l={},u={},d={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,classNames:{hover:"context-menu-hover",disabled:"context-menu-disabled",visible:"context-menu-visible",notSelectable:"context-menu-not-selectable",icon:"context-menu-icon",iconEdit:"context-menu-icon-edit",iconCut:"context-menu-icon-cut",iconCopy:"context-menu-icon-copy",iconPaste:"context-menu-icon-paste",iconDelete:"context-menu-icon-delete",iconAdd:"context-menu-icon-add",iconQuit:"context-menu-icon-quit"},determinePosition:function(t){if(e.ui&&e.ui.position)t.css("display","block").position({my:"center
 top",at:"center bottom",of:this,offset:"0 
5",collision:"fit"}).css("display","none");else{var 
n=this.offset();n.top+=this.outerHeight(),n.left+=this.outerWidth()/2-t.outerWidth()/2,t.css(n)}},position:function(e,t,n){var
 a;if(!t&&!n)return void 
e.determinePosition.call(this,e.$menu);a="maintain"===t&&"maintain"===n?e.$menu.position():{top:n,left:t};var
 
o=i.scrollTop()+i.height(),s=i.scrollLeft()+i.width(),c=e.$menu.outerHeight(),r=e.$menu.outerWidth();a.top+c>o&&(a.top-=c),a.top<0&&(a.top=0),a.left+r>s&&(a.left-=r),a.left<0&&(a.left=0),e.$menu.css(a)},positionSubmenu:function(t){if(e.ui&&e.ui.position)t.css("display","block").position({my:"left
 top",at:"right top",of:this,collision:"flipfit 
fit"}).css("display","");else{var 
n={top:0,left:this.outerWidth()};t.css(n)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:e.noop,hide:e.noop},callback:null,items:{}},m={timer:null,pageX:null,pageY:null},p=function(e){for(var
 
t=0,n=e;;)if(t=Math.max(t,parseInt(n.css("z-index"),10)||0),n=n.parent(),!n||!n.length||"html
 body".indexOf(n.prop("nodeName").toLowerCase())>-1)break;return 
t},f={abortevent:function(e){e.preventDefault(),e.stopImmediatePropagation()},contextmenu:function(t){var
 
n=e(this);if("right"===t.data.trigger&&(t.preventDefault(),t.stopImmediatePropagation()),!("right"!==t.data.trigger&&"demand"!==t.data.trigger&&t.originalEvent||!(void
 
0===t.mouseButton||!t.data||"left"===t.data.trigger&&0===t.mouseButton||"right"===t.data.trigger&&2===t.mouseButton)||n.hasClass("context-menu-active")||n.hasClass("context-menu-disabled"))){if(o=n,t.data.build){var
 
a=t.data.build(o,t);if(a===!1)return;if(t.data=e.extend(!0,{},d,t.data,a||{}),!t.data.items||e.isEmptyObject(t.data.items))throw
 window.console&&(console.error||console.log).call(console,"No items specified 
to show in contextMenu"),new Error("No Items 
specified");t.data.$trigger=o,h.create(t.data)}var s=!1;for(var i in 
t.data.items)if(t.data.items.hasOwnProperty(i)){var 
c;c=e.isFunction(t.data.items[i].visible)?t.data.items[i].visible.call(e(t.currentTarget),i,t.data):"undefined"!=typeof
 i.visible?t.data.items[i].visible===!0:!0,c&&(s=!0)}if(s){var 
r=e(null===t.data.appendTo?"body":t.data.appendTo),l=t.target||t.srcElement||t.originalTarget;void
 0!==t.offsetX&&void 
0!==t.offsetY?h.show.call(n,t.data,e(l).offset().left-r.offset().left+t.offsetX,e(l).offset().top-r.offset().top+t.offsetY):h.show.call(n,t.data,t.pageX,t.pageY)}}},click:function(t){t.preventDefault(),t.stopImmediatePropagation(),e(this).trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))},mousedown:function(t){var
 
n=e(this);o&&o.length&&!o.is(n)&&o.data("contextMenu").$menu.trigger("contextmenu:hide"),2===t.button&&(o=n.data("contextMenuActive",!0))},mouseup:function(t){var
 
n=e(this);n.data("contextMenuActive")&&o&&o.length&&o.is(n)&&!n.hasClass("context-menu-disabled")&&(t.preventDefault(),t.stopImmediatePropagation(),o=n,n.trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))),n.removeData("contextMenuActive")},mouseenter:function(t){var
 
n=e(this),a=e(t.relatedTarget),s=e(document);a.is(".context-menu-list")||a.closest(".context-menu-list").length||o&&o.length||(m.pageX=t.pageX,m.pageY=t.pageY,m.data=t.data,s.on("mousemove.contextMenuShow",f.mousemove),m.timer=setTimeout(function(){m.timer=null,s.off("mousemove.contextMenuShow"),o=n,n.trigger(e.Event("contextmenu",{data:m.data,pageX:m.pageX,pageY:m.pageY}))},t.data.delay))},mousemove:function(e){m.pageX=e.pageX,m.pageY=e.pageY},mouseleave:function(t){var
 
n=e(t.relatedTarget);if(!n.is(".context-menu-list")&&!n.closest(".context-menu-list").length){try{clearTimeout(m.timer)}catch(t){}m.timer=null}},layerClick:function(t){var
 
n,a,o=e(this),s=o.data("contextMenuRoot"),c=t.button,r=t.pageX,l=t.pageY;t.preventDefault(),t.stopImmediatePropagation(),setTimeout(function(){var
 
o,u="left"===s.trigger&&0===c||"right"===s.trigger&&2===c;if(document.elementFromPoint&&s.$layer&&(s.$layer.hide(),n=document.elementFromPoint(r-i.scrollLeft(),l-i.scrollTop()),s.$layer.show()),s.reposition&&u)if(document.elementFromPoint){if(s.$trigger.is(n)||s.$trigger.has(n).length)return
 void s.position.call(s.$trigger,s,r,l)}else 
if(a=s.$trigger.offset(),o=e(window),a.top+=o.scrollTop(),a.top<=t.pageY&&(a.left+=o.scrollLeft(),a.left<=t.pageX&&(a.bottom=a.top+s.$trigger.outerHeight(),a.bottom>=t.pageY&&(a.right=a.left+s.$trigger.outerWidth(),a.right>=t.pageX))))return
 void 
s.position.call(s.$trigger,s,r,l);n&&u&&s.$trigger.one("contextmenu:hidden",function(){e(n).contextMenu({x:r,y:l,button:c})}),s.$menu.trigger("contextmenu:hide")},50)},keyStop:function(e,t){t.isInput||e.preventDefault(),e.stopPropagation()},key:function(e){var
 t={};o&&(t=o.data("contextMenu")||{}),void 0===t.zIndex&&(t.zIndex=0);var 
n=0,a=function(e){""!==e.style.zIndex?n=e.style.zIndex:null!==e.offsetParent&&void
 0!==e.offsetParent?a(e.offsetParent):null!==e.parentElement&&void 
0!==e.parentElement&&a(e.parentElement)};if(a(e.target),!(n>t.zIndex)){switch(e.keyCode){case
 9:case 38:if(f.keyStop(e,t),t.isInput){if(9===e.keyCode&&e.shiftKey)return 
e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, 
select").blur(),void 
t.$menu.trigger("prevcommand");if(38===e.keyCode&&"checkbox"===t.$selected.find("input,
 textarea, select").prop("type"))return void e.preventDefault()}else 
if(9!==e.keyCode||e.shiftKey)return void 
t.$menu.trigger("prevcommand");break;case 
40:if(f.keyStop(e,t),!t.isInput)return void 
t.$menu.trigger("nextcommand");if(9===e.keyCode)return 
e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, 
select").blur(),void 
t.$menu.trigger("nextcommand");if(40===e.keyCode&&"checkbox"===t.$selected.find("input,
 textarea, select").prop("type"))return void e.preventDefault();break;case 
37:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;if(!t.$selected.parent().hasClass("context-menu-root")){var
 s=t.$selected.parent().parent();return 
t.$selected.trigger("contextmenu:blur"),void(t.$selected=s)}break;case 
39:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;var 
i=t.$selected.data("contextMenu")||{};if(i.$menu&&t.$selected.hasClass("context-menu-submenu"))return
 t.$selected=null,i.$selected=null,void 
i.$menu.trigger("nextcommand");break;case 35:case 36:return 
t.$selected&&t.$selected.find("input, textarea, select").length?void 
0:((t.$selected&&t.$selected.parent()||t.$menu).children(":not(."+t.classNames.disabled+",
 
."+t.classNames.notSelectable+")")[36===e.keyCode?"first":"last"]().trigger("contextmenu:focus"),void
 e.preventDefault());case 
13:if(f.keyStop(e,t),t.isInput){if(t.$selected&&!t.$selected.is("textarea, 
select"))return void e.preventDefault();break}return void("undefined"!=typeof 
t.$selected&&null!==t.$selected&&t.$selected.trigger("mouseup"));case 32:case 
33:case 34:return void f.keyStop(e,t);case 27:return f.keyStop(e,t),void 
t.$menu.trigger("contextmenu:hide");default:var 
c=String.fromCharCode(e.keyCode).toUpperCase();if(t.accesskeys&&t.accesskeys[c])return
 void 
t.accesskeys[c].$node.trigger(t.accesskeys[c].$menu?"contextmenu:focus":"mouseup")}e.stopPropagation(),"undefined"!=typeof
 
t.$selected&&null!==t.$selected&&t.$selected.trigger(e)}},prevItem:function(t){t.stopPropagation();var
 
n=e(this).data("contextMenu")||{},a=e(this).data("contextMenuRoot")||{};if(n.$selected){var
 
o=n.$selected;n=n.$selected.parent().data("contextMenu")||{},n.$selected=o}for(var
 
s=n.$menu.children(),i=n.$selected&&n.$selected.prev().length?n.$selected.prev():s.last(),c=i;i.hasClass(a.classNames.disabled)||i.hasClass(a.classNames.notSelectable)||i.is(":hidden");)if(i=i.prev().length?i.prev():s.last(),i.is(c))return;n.$selected&&f.itemMouseleave.call(n.$selected.get(0),t),f.itemMouseenter.call(i.get(0),t);var
 r=i.find("input, textarea, 
select");r.length&&r.focus()},nextItem:function(t){t.stopPropagation();var 
n=e(this).data("contextMenu")||{},a=e(this).data("contextMenuRoot")||{};if(n.$selected){var
 
o=n.$selected;n=n.$selected.parent().data("contextMenu")||{},n.$selected=o}for(var
 
s=n.$menu.children(),i=n.$selected&&n.$selected.next().length?n.$selected.next():s.first(),c=i;i.hasClass(a.classNames.disabled)||i.hasClass(a.classNames.notSelectable)||i.is(":hidden");)if(i=i.next().length?i.next():s.first(),i.is(c))return;n.$selected&&f.itemMouseleave.call(n.$selected.get(0),t),f.itemMouseenter.call(i.get(0),t);var
 r=i.find("input, textarea, 
select");r.length&&r.focus()},focusInput:function(){var 
t=e(this).closest(".context-menu-item"),n=t.data(),a=n.contextMenu,o=n.contextMenuRoot;o.$selected=a.$selected=t,o.isInput=a.isInput=!0},blurInput:function(){var
 
t=e(this).closest(".context-menu-item"),n=t.data(),a=n.contextMenu,o=n.contextMenuRoot;o.isInput=a.isInput=!1},menuMouseenter:function(){var
 t=e(this).data().contextMenuRoot;t.hovering=!0},menuMouseleave:function(t){var 
n=e(this).data().contextMenuRoot;n.$layer&&n.$layer.is(t.relatedTarget)&&(n.hovering=!1)},itemMouseenter:function(t){var
 n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;return 
s.hovering=!0,t&&s.$layer&&s.$layer.is(t.relatedTarget)&&(t.preventDefault(),t.stopImmediatePropagation()),(o.$menu?o:s).$menu.children(s.classNames.hover).trigger("contextmenu:blur"),n.siblings().trigger("contextmenu:blur"),n.hasClass(s.classNames.disabled)||n.hasClass(s.classNames.notSelectable)?void(o.$selected=null):void
 n.trigger("contextmenu:focus")},itemMouseleave:function(t){var 
n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;return 
s!==o&&s.$layer&&s.$layer.is(t.relatedTarget)?("undefined"!=typeof 
s.$selected&&null!==s.$selected&&s.$selected.trigger("contextmenu:blur"),t.preventDefault(),t.stopImmediatePropagation(),void(s.$selected=o.$selected=o.$node)):void
 n.trigger("contextmenu:blur")},itemClick:function(t){var 
n,a=e(this),o=a.data(),s=o.contextMenu,i=o.contextMenuRoot,c=o.contextMenuKey;if(s.items[c]&&!a.is("."+i.classNames.disabled+",
 .context-menu-submenu, .context-menu-separator, 
."+i.classNames.notSelectable)){if(t.preventDefault(),t.stopImmediatePropagation(),e.isFunction(i.callbacks[c])&&Object.prototype.hasOwnProperty.call(i.callbacks,c))n=i.callbacks[c];else{if(!e.isFunction(i.callback))return;n=i.callback}n.call(i.$trigger,c,i)!==!1?i.$menu.trigger("contextmenu:hide"):i.$menu.parent().length&&h.update.call(i.$trigger,i)}},inputClick:function(e){e.stopImmediatePropagation()},hideMenu:function(t,n){var
 
a=e(this).data("contextMenuRoot");h.hide.call(a.$trigger,a,n&&n.force)},focusItem:function(t){t.stopPropagation();var
 
n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;n.addClass([s.classNames.hover,s.classNames.visible].join("
 
")).siblings().removeClass(s.classNames.visible).filter(s.classNames.hover).trigger("contextmenu:blur"),o.$selected=s.$selected=n,o.$node&&s.positionSubmenu.call(o.$node,o.$menu)},blurItem:function(t){t.stopPropagation();var
 
n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;o.autoHide&&n.removeClass(s.classNames.visible),n.removeClass(s.classNames.hover),o.$selected=null}},h={show:function(t,n,a){var
 
s=e(this),i={};if(e("#context-menu-layer").trigger("mousedown"),t.$trigger=s,t.events.show.call(s,t)===!1)return
 void(o=null);if(h.update.call(s,t),t.position.call(s,t,n,a),t.zIndex){var 
c=t.zIndex;"function"==typeof 
t.zIndex&&(c=t.zIndex.call(s,t)),i.zIndex=p(s)+c}h.layer.call(t.$menu,t,i.zIndex),t.$menu.find("ul").css("zIndex",i.zIndex+1),t.$menu.css(i)[t.animation.show](t.animation.duration,function(){s.trigger("contextmenu:visible")}),s.data("contextMenu",t).addClass("context-menu-active"),e(document).off("keydown.contextMenu").on("keydown.contextMenu",f.key),t.autoHide&&e(document).on("mousemove.contextMenuAutoHide",function(e){var
 
n=s.offset();n.right=n.left+s.outerWidth(),n.bottom=n.top+s.outerHeight(),!t.$layer||t.hovering||e.pageX>=n.left&&e.pageX<=n.right&&e.pageY>=n.top&&e.pageY<=n.bottom||setTimeout(function(){t.hovering||t.$menu.trigger("contextmenu:hide")},50)})},hide:function(t,n){var
 
a=e(this);if(t||(t=a.data("contextMenu")||{}),n||!t.events||t.events.hide.call(a,t)!==!1){if(a.removeData("contextMenu").removeClass("context-menu-active"),t.$layer){setTimeout(function(e){return
 function(){e.remove()}}(t.$layer),10);try{delete 
t.$layer}catch(s){t.$layer=null}}o=null,t.$menu.find("."+t.classNames.hover).trigger("contextmenu:blur"),t.$selected=null,e(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),t.$menu&&t.$menu[t.animation.hide](t.animation.duration,function(){t.build&&(t.$menu.remove(),e.each(t,function(e){switch(e){case"ns":case"selector":case"build":case"trigger":return!0;default:t[e]=void
 0;try{delete 
t[e]}catch(n){}return!0}})),setTimeout(function(){a.trigger("contextmenu:hidden")},10)})}},create:function(n,a){function
 o(t){var n=e("<span></span>");return 
t._accesskey?(t._beforeAccesskey&&n.append(document.createTextNode(t._beforeAccesskey)),e("<span></span>").addClass("context-menu-accesskey").text(t._accesskey).appendTo(n),t._afterAccesskey&&n.append(document.createTextNode(t._afterAccesskey))):n.text(t.name),n}void
 0===a&&(a=n),n.$menu=e('<ul 
class="context-menu-list"></ul>').addClass(n.className||"").data({contextMenu:n,contextMenuRoot:a}),e.each(["callbacks","commands","inputs"],function(e,t){n[t]={},a[t]||(a[t]={})}),a.accesskeys||(a.accesskeys={}),e.each(n.items,function(s,i){var
 c=e('<li 
class="context-menu-item"></li>').addClass(i.className||""),r=null,l=null;if(c.on("click",e.noop),"string"==typeof
 
i&&(i={type:"cm_seperator"}),i.$node=c.data({contextMenu:n,contextMenuRoot:a,contextMenuKey:s}),"undefined"!=typeof
 i.accesskey)for(var 
d,m=t(i.accesskey),p=0;d=m[p];p++)if(!a.accesskeys[d]){a.accesskeys[d]=i;var 
x=i.name.match(new 
RegExp("^(.*?)("+d+")(.*)$","i"));x&&(i._beforeAccesskey=x[1],i._accesskey=x[2],i._afterAccesskey=x[3]);break}if(i.type&&u[i.type])u[i.type].call(c,i,n,a),e.each([n,a],function(t,n){n.commands[s]=i,e.isFunction(i.callback)&&(n.callbacks[s]=i.callback)});else{switch("cm_seperator"===i.type?c.addClass("context-menu-separator
 "+a.classNames.notSelectable):"html"===i.type?c.addClass("context-menu-html 
"+a.classNames.notSelectable):i.type?(r=e("<label></label>").appendTo(c),o(i).appendTo(r),c.addClass("context-menu-input"),n.hasTypes=!0,e.each([n,a],function(e,t){t.commands[s]=i,t.inputs[s]=i})):i.items&&(i.type="sub"),i.type){case"cm_seperator":break;case"text":l=e('<input
 type="text" value="1" name="" 
value="">').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r);break;case"textarea":l=e('<textarea
 
name=""></textarea>').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r),i.height&&l.height(i.height);break;case"checkbox":l=e('<input
 type="checkbox" value="1" name="" 
value="">').attr("name","context-menu-input-"+s).val(i.value||"").prop("checked",!!i.selected).prependTo(r);break;case"radio":l=e('<input
 type="radio" value="1" name="" 
value="">').attr("name","context-menu-input-"+i.radio).val(i.value||"").prop("checked",!!i.selected).prependTo(r);break;case"select":l=e('<select
 
name="">').attr("name","context-menu-input-"+s).appendTo(r),i.options&&(e.each(i.options,function(t,n){e("<option></option>").val(t).text(n).appendTo(l)}),l.val(i.selected));break;case"sub":o(i).appendTo(c),i.appendTo=i.$node,h.create(i,a),c.data("contextMenu",i).addClass("context-menu-submenu"),i.callback=null;break;case"html":e(i.html).appendTo(c);break;default:e.each([n,a],function(t,n){n.commands[s]=i,e.isFunction(i.callback)&&(n.callbacks[s]=i.callback)}),o(i).appendTo(c)}i.type&&"sub"!==i.type&&"html"!==i.type&&"cm_seperator"!==i.type&&(l.on("focus",f.focusInput).on("blur",f.blurInput),i.events&&l.on(i.events,n)),i.icon&&(e.isFunction(i.icon)?i._icon=i.icon.call(this,this,c,s,i):i._icon=a.classNames.icon+"
 
"+a.classNames.icon+"-"+i.icon,c.addClass(i._icon))}i.$input=l,i.$label=r,c.appendTo(n.$menu),!n.hasTypes&&e.support.eventSelectstart&&c.on("selectstart.disableTextSelect",f.abortevent)}),n.$node||n.$menu.css("display","none").addClass("context-menu-root"),n.$menu.appendTo(n.appendTo||document.body)},resize:function(t,n){t.css({position:"absolute",display:"block"}),t.data("width",Math.ceil(t.outerWidth())),t.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),t.find(">
 li > 
ul").each(function(){h.resize(e(this),!0)}),n||t.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).width(function(){return
 e(this).data("width")})},update:function(t,n){var a=this;void 
0===n&&(n=t,h.resize(t.$menu)),t.$menu.children().each(function(){var 
o,s=e(this),i=s.data("contextMenuKey"),c=t.items[i],r=e.isFunction(c.disabled)&&c.disabled.call(a,i,n)||c.disabled===!0;if(o=e.isFunction(c.visible)?c.visible.call(a,i,n):"undefined"!=typeof
 
c.visible?c.visible===!0:!0,s[o?"show":"hide"](),s[r?"addClass":"removeClass"](n.classNames.disabled),e.isFunction(c.icon)&&(s.removeClass(c._icon),c._icon=c.icon.call(this,a,s,i,c),s.addClass(c._icon)),c.type)switch(s.find("input,
 select, 
textarea").prop("disabled",r),c.type){case"text":case"textarea":c.$input.val(c.value||"");break;case"checkbox":case"radio":c.$input.val(c.value||"").prop("checked",!!c.selected);break;case"select":c.$input.val(c.selected||"")}c.$menu&&h.update.call(a,c,n)})},layer:function(t,n){var
 a=t.$layer=e('<div id="context-menu-layer" style="position:fixed; 
z-index:'+n+'; top:0; left:0; opacity: 0; filter: alpha(opacity=0); 
background-color: 
#000;"></div>').css({height:i.height(),width:i.width(),display:"block"}).data("contextMenuRoot",t).insertBefore(this).on("contextmenu",f.abortevent).on("mousedown",f.layerClick);return
 void 
0===document.body.style.maxWidth&&a.css({position:"absolute",height:e(document).height()}),a}};e.fn.contextMenu=function(t){var
 n=this,a=t;if(this.length>0)if(void 
0===t)this.first().trigger("contextmenu");else if(void 0!==t.x&&void 
0!==t.y)this.first().trigger(e.Event("contextmenu",{pageX:t.x,pageY:t.y,mouseButton:t.button}));else
 if("hide"===t){var 
o=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;o&&o.trigger("contextmenu:hide")}else"destroy"===t?e.contextMenu("destroy",{context:this}):e.isPlainObject(t)?(t.context=this,e.contextMenu("create",t)):t?this.removeClass("context-menu-disabled"):t||this.addClass("context-menu-disabled");else
 
e.each(l,function(){this.selector===n.selector&&(a.data=this,e.extend(a.data,{trigger:"demand"}))}),f.contextmenu.call(a.target,a);return
 this},e.contextMenu=function(t,n){"string"!=typeof 
t&&(n=t,t="create"),"string"==typeof n?n={selector:n}:void 0===n&&(n={});var 
a=e.extend(!0,{},d,n||{}),o=e(document),i=o,u=!1;switch(a.context&&a.context.length?(i=e(a.context).first(),a.context=i.get(0),u=a.context!==document):a.context=document,t){case"create":if(!a.selector)throw
 new Error("No selector 
specified");if(a.selector.match(/.context-menu-(list|item|input)($|\s)/))throw 
new Error('Cannot bind to selector "'+a.selector+'" as it contains a reserved 
className');if(!a.build&&(!a.items||e.isEmptyObject(a.items)))throw new 
Error("No Items 
specified");switch(c++,a.ns=".contextMenu"+c,u||(r[a.selector]=a.ns),l[a.ns]=a,a.trigger||(a.trigger="right"),s||(o.on({"contextmenu:hide.contextMenu":f.hideMenu,"prevcommand.contextMenu":f.prevItem,"nextcommand.contextMenu":f.nextItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.menuMouseenter,"mouseleave.contextMenu":f.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",f.inputClick).on({"mouseup.contextMenu":f.itemClick,"contextmenu:focus.contextMenu":f.focusItem,"contextmenu:blur.contextMenu":f.blurItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.itemMouseenter,"mouseleave.contextMenu":f.itemMouseleave},".context-menu-item"),s=!0),i.on("contextmenu"+a.ns,a.selector,a,f.contextmenu),u&&i.on("remove"+a.ns,function(){e(this).contextMenu("destroy")}),a.trigger){case"hover":i.on("mouseenter"+a.ns,a.selector,a,f.mouseenter).on("mouseleave"+a.ns,a.selector,a,f.mouseleave);break;case"left":i.on("click"+a.ns,a.selector,a,f.click)}a.build||h.create(a);break;case"destroy":var
 m;if(u){var 
p=a.context;e.each(l,function(t,n){if(n.context!==p)return!0;m=e(".context-menu-list").filter(":visible"),m.length&&m.data().contextMenuRoot.$trigger.is(e(n.context).find(n.selector))&&m.trigger("contextmenu:hide",{force:!0});try{l[n.ns].$menu&&l[n.ns].$menu.remove(),delete
 l[n.ns]}catch(a){l[n.ns]=null}return e(n.context).off(n.ns),!0})}else 
if(a.selector){if(r[a.selector]){m=e(".context-menu-list").filter(":visible"),m.length&&m.data().contextMenuRoot.$trigger.is(a.selector)&&m.trigger("contextmenu:hide",{force:!0});try{l[r[a.selector]].$menu&&l[r[a.selector]].$menu.remove(),delete
 l[r[a.selector]]}catch(x){l[r[a.selector]]=null}o.off(r[a.selector])}}else 
o.off(".contextMenu 
.contextMenuAutoHide"),e.each(l,function(t,n){e(n.context).off(n.ns)}),r={},l={},c=0,s=!1,e("#context-menu-layer,
 
.context-menu-list").remove();break;case"html5":(!e.support.htmlCommand&&!e.support.htmlMenuitem||"boolean"==typeof
 
n&&n)&&e('menu[type="context"]').each(function(){this.id&&e.contextMenu({selector:"[contextmenu="+this.id+"]",items:e.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw
 new Error('Unknown operation "'+t+'"')}return 
this},e.contextMenu.setInputValues=function(t,n){void 
0===n&&(n={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":t.value=n[e]||"";break;case"checkbox":t.selected=n[e]?!0:!1;break;case"radio":t.selected=(n[t.radio]||"")===t.value;break;case"select":t.selected=n[e]||""}})},e.contextMenu.getInputValues=function(t,n){return
 void 
0===n&&(n={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":case"select":n[e]=t.$input.val();break;case"checkbox":n[e]=t.$input.prop("checked");break;case"radio":t.$input.prop("checked")&&(n[t.radio]=t.value)}}),n},e.contextMenu.fromMenu=function(t){var
 n=e(t),o={};return 
a(o,n.children()),o},e.contextMenu.defaults=d,e.contextMenu.types=u,e.contextMenu.handle=f,e.contextMenu.op=h,e.contextMenu.menus=l});
+!function(e){"function"==typeof 
define&&define.amd?define(["jquery"],e):e("object"==typeof 
exports?require("jquery"):jQuery)}(function(e){"use strict";function 
t(e){for(var 
t,n=e.split(/\s+/),a=[],o=0;t=n[o];o++)t=t.charAt(0).toUpperCase(),a.push(t);return
 a}function n(t){return t.id&&e('label[for="'+t.id+'"]').val()||t.name}function 
a(t,o,s){return s||(s=0),o.each(function(){var 
o,i,c=e(this),r=this,l=this.nodeName.toLowerCase();switch("label"===l&&c.find("input,
 textarea, 
select").length&&(o=c.text(),c=c.children().first(),r=c.get(0),l=r.nodeName.toLowerCase()),l){case"menu":i={name:c.attr("label"),items:{}},s=a(i.items,c.children(),s);break;case"a":case"button":i={name:c.text(),disabled:!!c.attr("disabled"),callback:function(){return
 
function(){c.click()}}()};break;case"menuitem":case"command":switch(c.attr("type")){case
 void 
0:case"command":case"menuitem":i={name:c.attr("label"),disabled:!!c.attr("disabled"),icon:c.attr("icon"),callback:function(){return
 
function(){c.click()}}()};break;case"checkbox":i={type:"checkbox",disabled:!!c.attr("disabled"),name:c.attr("label"),selected:!!c.attr("checked")};break;case"radio":i={type:"radio",disabled:!!c.attr("disabled"),name:c.attr("label"),radio:c.attr("radiogroup"),value:c.attr("id"),selected:!!c.attr("checked")};break;default:i=void
 
0}break;case"hr":i="-------";break;case"input":switch(c.attr("type")){case"text":i={type:"text",name:o||n(r),disabled:!!c.attr("disabled"),value:c.val()};break;case"checkbox":i={type:"checkbox",name:o||n(r),disabled:!!c.attr("disabled"),selected:!!c.attr("checked")};break;case"radio":i={type:"radio",name:o||n(r),disabled:!!c.attr("disabled"),radio:!!c.attr("name"),value:c.val(),selected:!!c.attr("checked")};break;default:i=void
 
0}break;case"select":i={type:"select",name:o||n(r),disabled:!!c.attr("disabled"),selected:c.val(),options:{}},c.children().each(function(){i.options[this.value]=e(this).text()});break;case"textarea":i={type:"textarea",name:o||n(r),disabled:!!c.attr("disabled"),value:c.val()};break;case"label":break;default:i={type:"html",html:c.clone(!0)}}i&&(s++,t["key"+s]=i)}),s}e.support.htmlMenuitem="HTMLMenuItemElement"in
 window,e.support.htmlCommand="HTMLCommandElement"in 
window,e.support.eventSelectstart="onselectstart"in 
document.documentElement,e.ui&&e.widget||(e.cleanData=function(t){return 
function(n){var 
a,o,s;for(s=0;null!=n[s];s++){o=n[s];try{a=e._data(o,"events"),a&&a.remove&&e(o).triggerHandler("remove")}catch(e){}}t(n)}}(e.cleanData));var
 
o=null,s=!1,i=e(window),c=0,r={},l={},u={},d={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,selectableSubMenu:!1,classNames:{hover:"context-menu-hover",disabled:"context-menu-disabled",visible:"context-menu-visible",notSelectable:"context-menu-not-selectable",icon:"context-menu-icon",iconEdit:"context-menu-icon-edit",iconCut:"context-menu-icon-cut",iconCopy:"context-menu-icon-copy",iconPaste:"context-menu-icon-paste",iconDelete:"context-menu-icon-delete",iconAdd:"context-menu-icon-add",iconQuit:"context-menu-icon-quit",iconLoadingClass:"context-menu-icon-loading"},determinePosition:function(t){if(e.ui&&e.ui.position)t.css("display","block").position({my:"center
 top",at:"center bottom",of:this,offset:"0 
5",collision:"fit"}).css("display","none");else{var 
n=this.offset();n.top+=this.outerHeight(),n.left+=this.outerWidth()/2-t.outerWidth()/2,t.css(n)}},position:function(e,t,n){var
 a;if(!t&&!n)return void 
e.determinePosition.call(this,e.$menu);a="maintain"===t&&"maintain"===n?e.$menu.position():{top:n,left:t};var
 
o=i.scrollTop()+i.height(),s=i.scrollLeft()+i.width(),c=e.$menu.outerHeight(),r=e.$menu.outerWidth();a.top+c>o&&(a.top-=c),a.top<0&&(a.top=0),a.left+r>s&&(a.left-=r),a.left<0&&(a.left=0),e.$menu.css(a)},positionSubmenu:function(t){if(void
 0!==t)if(e.ui&&e.ui.position)t.css("display","block").position({my:"left 
top-5",at:"right top",of:this,collision:"flipfit 
fit"}).css("display","");else{var 
n={top:-9,left:this.outerWidth()-5};t.css(n)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:e.noop,hide:e.noop},callback:null,items:{}},m={timer:null,pageX:null,pageY:null},p=function(e){for(var
 
t=0,n=e;;)if(t=Math.max(t,parseInt(n.css("z-index"),10)||0),n=n.parent(),!n||!n.length||"html
 body".indexOf(n.prop("nodeName").toLowerCase())>-1)break;return 
t},f={abortevent:function(e){e.preventDefault(),e.stopImmediatePropagation()},contextmenu:function(t){var
 
n=e(this);if("right"===t.data.trigger&&(t.preventDefault(),t.stopImmediatePropagation()),!("right"!==t.data.trigger&&"demand"!==t.data.trigger&&t.originalEvent||!(void
 
0===t.mouseButton||!t.data||"left"===t.data.trigger&&0===t.mouseButton||"right"===t.data.trigger&&2===t.mouseButton)||n.hasClass("context-menu-active")||n.hasClass("context-menu-disabled"))){if(o=n,t.data.build){var
 
a=t.data.build(o,t);if(a===!1)return;if(t.data=e.extend(!0,{},d,t.data,a||{}),!t.data.items||e.isEmptyObject(t.data.items))throw
 window.console&&(console.error||console.log).call(console,"No items specified 
to show in contextMenu"),new Error("No Items 
specified");t.data.$trigger=o,h.create(t.data)}var s=!1;for(var i in 
t.data.items)if(t.data.items.hasOwnProperty(i)){var 
c;c=e.isFunction(t.data.items[i].visible)?t.data.items[i].visible.call(e(t.currentTarget),i,t.data):"undefined"==typeof
 
t.data.items[i]||!t.data.items[i].visible||t.data.items[i].visible===!0,c&&(s=!0)}s&&h.show.call(n,t.data,t.pageX,t.pageY)}},click:function(t){t.preventDefault(),t.stopImmediatePropagation(),e(this).trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))},mousedown:function(t){var
 
n=e(this);o&&o.length&&!o.is(n)&&o.data("contextMenu").$menu.trigger("contextmenu:hide"),2===t.button&&(o=n.data("contextMenuActive",!0))},mouseup:function(t){var
 
n=e(this);n.data("contextMenuActive")&&o&&o.length&&o.is(n)&&!n.hasClass("context-menu-disabled")&&(t.preventDefault(),t.stopImmediatePropagation(),o=n,n.trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))),n.removeData("contextMenuActive")},mouseenter:function(t){var
 
n=e(this),a=e(t.relatedTarget),s=e(document);a.is(".context-menu-list")||a.closest(".context-menu-list").length||o&&o.length||(m.pageX=t.pageX,m.pageY=t.pageY,m.data=t.data,s.on("mousemove.contextMenuShow",f.mousemove),m.timer=setTimeout(function(){m.timer=null,s.off("mousemove.contextMenuShow"),o=n,n.trigger(e.Event("contextmenu",{data:m.data,pageX:m.pageX,pageY:m.pageY}))},t.data.delay))},mousemove:function(e){m.pageX=e.pageX,m.pageY=e.pageY},mouseleave:function(t){var
 
n=e(t.relatedTarget);if(!n.is(".context-menu-list")&&!n.closest(".context-menu-list").length){try{clearTimeout(m.timer)}catch(e){}m.timer=null}},layerClick:function(t){var
 
n,a,o=e(this),s=o.data("contextMenuRoot"),c=t.button,r=t.pageX,l=t.pageY;t.preventDefault(),t.stopImmediatePropagation(),setTimeout(function(){var
 
o,u="left"===s.trigger&&0===c||"right"===s.trigger&&2===c;if(document.elementFromPoint&&s.$layer){if(s.$layer.hide(),n=document.elementFromPoint(r-i.scrollLeft(),l-i.scrollTop()),n.isContentEditable){var
 
d=document.createRange(),m=window.getSelection();d.selectNode(n),d.collapse(!0),m.removeAllRanges(),m.addRange(d)}s.$layer.show()}if(s.reposition&&u)if(document.elementFromPoint){if(s.$trigger.is(n)||s.$trigger.has(n).length)return
 void s.position.call(s.$trigger,s,r,l)}else 
if(a=s.$trigger.offset(),o=e(window),a.top+=o.scrollTop(),a.top<=t.pageY&&(a.left+=o.scrollLeft(),a.left<=t.pageX&&(a.bottom=a.top+s.$trigger.outerHeight(),a.bottom>=t.pageY&&(a.right=a.left+s.$trigger.outerWidth(),a.right>=t.pageX))))return
 void 
s.position.call(s.$trigger,s,r,l);n&&u&&s.$trigger.one("contextmenu:hidden",function(){e(n).contextMenu({x:r,y:l,button:c})}),null!=s&&null!=s.$menu&&s.$menu.trigger("contextmenu:hide")},50)},keyStop:function(e,t){t.isInput||e.preventDefault(),e.stopPropagation()},key:function(e){var
 t={};o&&(t=o.data("contextMenu")||{}),void 0===t.zIndex&&(t.zIndex=0);var 
n=0,a=function(e){""!==e.style.zIndex?n=e.style.zIndex:null!==e.offsetParent&&void
 0!==e.offsetParent?a(e.offsetParent):null!==e.parentElement&&void 
0!==e.parentElement&&a(e.parentElement)};if(a(e.target),!(n>t.zIndex)){switch(e.keyCode){case
 9:case 38:if(f.keyStop(e,t),t.isInput){if(9===e.keyCode&&e.shiftKey)return 
e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, 
select").blur(),void(null!=t.$menu&&t.$menu.trigger("prevcommand"));if(38===e.keyCode&&"checkbox"===t.$selected.find("input,
 textarea, select").prop("type"))return void e.preventDefault()}else 
if(9!==e.keyCode||e.shiftKey)return 
void(null!=t.$menu&&t.$menu.trigger("prevcommand"));break;case 
40:if(f.keyStop(e,t),!t.isInput)return 
void(null!=t.$menu&&t.$menu.trigger("nextcommand"));if(9===e.keyCode)return 
e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, 
select").blur(),void(null!=t.$menu&&t.$menu.trigger("nextcommand"));if(40===e.keyCode&&"checkbox"===t.$selected.find("input,
 textarea, select").prop("type"))return void e.preventDefault();break;case 
37:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;if(!t.$selected.parent().hasClass("context-menu-root")){var
 s=t.$selected.parent().parent();return 
t.$selected.trigger("contextmenu:blur"),void(t.$selected=s)}break;case 
39:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;var 
i=t.$selected.data("contextMenu")||{};if(i.$menu&&t.$selected.hasClass("context-menu-submenu"))return
 t.$selected=null,i.$selected=null,void 
i.$menu.trigger("nextcommand");break;case 35:case 36:return 
t.$selected&&t.$selected.find("input, textarea, select").length?void 
0:((t.$selected&&t.$selected.parent()||t.$menu).children(":not(."+t.classNames.disabled+",
 
."+t.classNames.notSelectable+")")[36===e.keyCode?"first":"last"]().trigger("contextmenu:focus"),void
 e.preventDefault());case 
13:if(f.keyStop(e,t),t.isInput){if(t.$selected&&!t.$selected.is("textarea, 
select"))return void e.preventDefault();break}return void("undefined"!=typeof 
t.$selected&&null!==t.$selected&&t.$selected.trigger("mouseup"));case 32:case 
33:case 34:return void f.keyStop(e,t);case 27:return 
f.keyStop(e,t),void(null!=t.$menu&&t.$menu.trigger("contextmenu:hide"));default:var
 
c=String.fromCharCode(e.keyCode).toUpperCase();if(t.accesskeys&&t.accesskeys[c])return
 void 
t.accesskeys[c].$node.trigger(t.accesskeys[c].$menu?"contextmenu:focus":"mouseup")}e.stopPropagation(),"undefined"!=typeof
 
t.$selected&&null!==t.$selected&&t.$selected.trigger(e)}},prevItem:function(t){t.stopPropagation();var
 
n=e(this).data("contextMenu")||{},a=e(this).data("contextMenuRoot")||{};if(n.$selected){var
 
o=n.$selected;n=n.$selected.parent().data("contextMenu")||{},n.$selected=o}for(var
 
s=n.$menu.children(),i=n.$selected&&n.$selected.prev().length?n.$selected.prev():s.last(),c=i;i.hasClass(a.classNames.disabled)||i.hasClass(a.classNames.notSelectable)||i.is(":hidden");)if(i=i.prev().length?i.prev():s.last(),i.is(c))return;n.$selected&&f.itemMouseleave.call(n.$selected.get(0),t),f.itemMouseenter.call(i.get(0),t);var
 r=i.find("input, textarea, 
select");r.length&&r.focus()},nextItem:function(t){t.stopPropagation();var 
n=e(this).data("contextMenu")||{},a=e(this).data("contextMenuRoot")||{};if(n.$selected){var
 
o=n.$selected;n=n.$selected.parent().data("contextMenu")||{},n.$selected=o}for(var
 
s=n.$menu.children(),i=n.$selected&&n.$selected.next().length?n.$selected.next():s.first(),c=i;i.hasClass(a.classNames.disabled)||i.hasClass(a.classNames.notSelectable)||i.is(":hidden");)if(i=i.next().length?i.next():s.first(),i.is(c))return;n.$selected&&f.itemMouseleave.call(n.$selected.get(0),t),f.itemMouseenter.call(i.get(0),t);var
 r=i.find("input, textarea, 
select");r.length&&r.focus()},focusInput:function(){var 
t=e(this).closest(".context-menu-item"),n=t.data(),a=n.contextMenu,o=n.contextMenuRoot;o.$selected=a.$selected=t,o.isInput=a.isInput=!0},blurInput:function(){var
 
t=e(this).closest(".context-menu-item"),n=t.data(),a=n.contextMenu,o=n.contextMenuRoot;o.isInput=a.isInput=!1},menuMouseenter:function(){var
 t=e(this).data().contextMenuRoot;t.hovering=!0},menuMouseleave:function(t){var 
n=e(this).data().contextMenuRoot;n.$layer&&n.$layer.is(t.relatedTarget)&&(n.hovering=!1)},itemMouseenter:function(t){var
 n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;return 
s.hovering=!0,t&&s.$layer&&s.$layer.is(t.relatedTarget)&&(t.preventDefault(),t.stopImmediatePropagation()),(o.$menu?o:s).$menu.children("."+s.classNames.hover).trigger("contextmenu:blur").children(".hover").trigger("contextmenu:blur"),n.hasClass(s.classNames.disabled)||n.hasClass(s.classNames.notSelectable)?void(o.$selected=null):void
 n.trigger("contextmenu:focus")},itemMouseleave:function(t){var 
n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;return 
s!==o&&s.$layer&&s.$layer.is(t.relatedTarget)?("undefined"!=typeof 
s.$selected&&null!==s.$selected&&s.$selected.trigger("contextmenu:blur"),t.preventDefault(),t.stopImmediatePropagation(),void(s.$selected=o.$selected=o.$node)):void
 n.trigger("contextmenu:blur")},itemClick:function(t){var 
n,a=e(this),o=a.data(),s=o.contextMenu,i=o.contextMenuRoot,c=o.contextMenuKey;if(!(!s.items[c]||a.is("."+i.classNames.disabled+",
 .context-menu-separator, 
."+i.classNames.notSelectable)||a.is(".context-menu-submenu")&&i.selectableSubMenu===!1)){if(t.preventDefault(),t.stopImmediatePropagation(),e.isFunction(s.callbacks[c])&&Object.prototype.hasOwnProperty.call(s.callbacks,c))n=s.callbacks[c];else{if(!e.isFunction(i.callback))return;n=i.callback}n.call(i.$trigger,c,i)!==!1?i.$menu.trigger("contextmenu:hide"):i.$menu.parent().length&&h.update.call(i.$trigger,i)}},inputClick:function(e){e.stopImmediatePropagation()},hideMenu:function(t,n){var
 
a=e(this).data("contextMenuRoot");h.hide.call(a.$trigger,a,n&&n.force)},focusItem:function(t){t.stopPropagation();var
 
n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;n.hasClass(s.classNames.disabled)||n.hasClass(s.classNames.notSelectable)||(n.addClass([s.classNames.hover,s.classNames.visible].join("
 
")).parent().find(".context-menu-item").not(n).removeClass(s.classNames.visible).filter("."+s.classNames.hover).trigger("contextmenu:blur"),o.$selected=s.$selected=n,o.$node&&s.positionSubmenu.call(o.$node,o.$menu))},blurItem:function(t){t.stopPropagation();var
 
n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;o.autoHide&&n.removeClass(s.classNames.visible),n.removeClass(s.classNames.hover),o.$selected=null}},h={show:function(t,n,a){var
 
s=e(this),i={};if(e("#context-menu-layer").trigger("mousedown"),t.$trigger=s,t.events.show.call(s,t)===!1)return
 void(o=null);if(h.update.call(s,t),t.position.call(s,t,n,a),t.zIndex){var 
c=t.zIndex;"function"==typeof 
t.zIndex&&(c=t.zIndex.call(s,t)),i.zIndex=p(s)+c}h.layer.call(t.$menu,t,i.zIndex),t.$menu.find("ul").css("zIndex",i.zIndex+1),t.$menu.css(i)[t.animation.show](t.animation.duration,function(){s.trigger("contextmenu:visible")}),s.data("contextMenu",t).addClass("context-menu-active"),e(document).off("keydown.contextMenu").on("keydown.contextMenu",f.key),t.autoHide&&e(document).on("mousemove.contextMenuAutoHide",function(e){var
 
n=s.offset();n.right=n.left+s.outerWidth(),n.bottom=n.top+s.outerHeight(),!t.$layer||t.hovering||e.pageX>=n.left&&e.pageX<=n.right&&e.pageY>=n.top&&e.pageY<=n.bottom||setTimeout(function(){t.hovering||null==t.$menu||t.$menu.trigger("contextmenu:hide")},50)})},hide:function(t,n){var
 
a=e(this);if(t||(t=a.data("contextMenu")||{}),n||!t.events||t.events.hide.call(a,t)!==!1){if(a.removeData("contextMenu").removeClass("context-menu-active"),t.$layer){setTimeout(function(e){return
 function(){e.remove()}}(t.$layer),10);try{delete 
t.$layer}catch(e){t.$layer=null}}o=null,t.$menu.find("."+t.classNames.hover).trigger("contextmenu:blur"),t.$selected=null,t.$menu.find("."+t.classNames.visible).removeClass(t.classNames.visible),e(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),t.$menu&&t.$menu[t.animation.hide](t.animation.duration,function(){t.build&&(t.$menu.remove(),e.each(t,function(e){switch(e){case"ns":case"selector":case"build":case"trigger":return!0;default:t[e]=void
 0;try{delete 
t[e]}catch(e){}return!0}})),setTimeout(function(){a.trigger("contextmenu:hidden")},10)})}},create:function(n,a){function
 o(t){var 
n=e("<span></span>");if(t._accesskey)t._beforeAccesskey&&n.append(document.createTextNode(t._beforeAccesskey)),e("<span></span>").addClass("context-menu-accesskey").text(t._accesskey).appendTo(n),t._afterAccesskey&&n.append(document.createTextNode(t._afterAccesskey));else
 if(t.isHtmlName){if("undefined"!=typeof t.accesskey)throw new 
Error("accesskeys are not compatible with HTML names and cannot be used 
together in the same item");n.html(t.name)}else n.text(t.name);return n}void 
0===a&&(a=n),n.$menu=e('<ul 
class="context-menu-list"></ul>').addClass(n.className||"").data({contextMenu:n,contextMenuRoot:a}),e.each(["callbacks","commands","inputs"],function(e,t){n[t]={},a[t]||(a[t]={})}),a.accesskeys||(a.accesskeys={}),e.each(n.items,function(s,i){var
 c=e('<li 
class="context-menu-item"></li>').addClass(i.className||""),r=null,l=null;if(c.on("click",e.noop),"string"!=typeof
 
i&&"cm_separator"!==i.type||(i={type:"cm_seperator"}),i.$node=c.data({contextMenu:n,contextMenuRoot:a,contextMenuKey:s}),"undefined"!=typeof
 i.accesskey)for(var 
d,m=t(i.accesskey),p=0;d=m[p];p++)if(!a.accesskeys[d]){a.accesskeys[d]=i;var 
x=i.name.match(new 
RegExp("^(.*?)("+d+")(.*)$","i"));x&&(i._beforeAccesskey=x[1],i._accesskey=x[2],i._afterAccesskey=x[3]);break}if(i.type&&u[i.type])u[i.type].call(c,i,n,a),e.each([n,a],function(t,a){a.commands[s]=i,!e.isFunction(i.callback)||void
 0!==a.callbacks[s]&&void 
0!==n.type||(a.callbacks[s]=i.callback)});else{switch("cm_seperator"===i.type?c.addClass("context-menu-separator
 "+a.classNames.notSelectable):"html"===i.type?c.addClass("context-menu-html 
"+a.classNames.notSelectable):"sub"===i.type||(i.type?(r=e("<label></label>").appendTo(c),o(i).appendTo(r),c.addClass("context-menu-input"),n.hasTypes=!0,e.each([n,a],function(e,t){t.commands[s]=i,t.inputs[s]=i})):i.items&&(i.type="sub")),i.type){case"cm_seperator":break;case"text":l=e('<input
 type="text" value="1" name="" 
/>').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r);break;case"textarea":l=e('<textarea
 
name=""></textarea>').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r),i.height&&l.height(i.height);break;case"checkbox":l=e('<input
 type="checkbox" value="1" name="" 
/>').attr("name","context-menu-input-"+s).val(i.value||"").prop("checked",!!i.selected).prependTo(r);break;case"radio":l=e('<input
 type="radio" value="1" name="" 
/>').attr("name","context-menu-input-"+i.radio).val(i.value||"").prop("checked",!!i.selected).prependTo(r);break;case"select":l=e('<select
 
name=""></select>').attr("name","context-menu-input-"+s).appendTo(r),i.options&&(e.each(i.options,function(t,n){e("<option></option>").val(t).text(n).appendTo(l)}),l.val(i.selected));break;case"sub":o(i).appendTo(c),i.appendTo=i.$node,c.data("contextMenu",i).addClass("context-menu-submenu"),i.callback=null,"function"==typeof
 
i.items.then?h.processPromises(i,a,i.items):h.create(i,a);break;case"html":e(i.html).appendTo(c);break;default:e.each([n,a],function(t,a){a.commands[s]=i,!e.isFunction(i.callback)||void
 0!==a.callbacks[s]&&void 
0!==n.type||(a.callbacks[s]=i.callback)}),o(i).appendTo(c)}i.type&&"sub"!==i.type&&"html"!==i.type&&"cm_seperator"!==i.type&&(l.on("focus",f.focusInput).on("blur",f.blurInput),i.events&&l.on(i.events,n)),i.icon&&(e.isFunction(i.icon)?i._icon=i.icon.call(this,this,c,s,i):"string"==typeof
 i.icon&&"fa-"===i.icon.substring(0,3)?i._icon=a.classNames.icon+" 
"+a.classNames.icon+"--fa fa "+i.icon:i._icon=a.classNames.icon+" 
"+a.classNames.icon+"-"+i.icon,c.addClass(i._icon))}i.$input=l,i.$label=r,c.appendTo(n.$menu),!n.hasTypes&&e.support.eventSelectstart&&c.on("selectstart.disableTextSelect",f.abortevent)}),n.$node||n.$menu.css("display","none").addClass("context-menu-root"),n.$menu.appendTo(n.appendTo||document.body)},resize:function(t,n){var
 
a;t.css({position:"absolute",display:"block"}),t.data("width",(a=t.get(0)).getBoundingClientRect?Math.ceil(a.getBoundingClientRect().width):t.outerWidth()+1),t.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),t.find(">
 li > 
ul").each(function(){h.resize(e(this),!0)}),n||t.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).outerWidth(function(){return
 e(this).data("width")})},update:function(t,n){var a=this;void 
0===n&&(n=t,h.resize(t.$menu)),t.$menu.children().each(function(){var 
o,s=e(this),i=s.data("contextMenuKey"),c=t.items[i],r=e.isFunction(c.disabled)&&c.disabled.call(a,i,n)||c.disabled===!0;if(o=e.isFunction(c.visible)?c.visible.call(a,i,n):"undefined"==typeof
 
c.visible||c.visible===!0,s[o?"show":"hide"](),s[r?"addClass":"removeClass"](n.classNames.disabled),e.isFunction(c.icon)&&(s.removeClass(c._icon),c._icon=c.icon.call(this,a,s,i,c),s.addClass(c._icon)),c.type)switch(s.find("input,
 select, 
textarea").prop("disabled",r),c.type){case"text":case"textarea":c.$input.val(c.value||"");break;case"checkbox":case"radio":c.$input.val(c.value||"").prop("checked",!!c.selected);break;case"select":c.$input.val(c.selected||"")}c.$menu&&h.update.call(a,c,n)})},layer:function(t,n){var
 a=t.$layer=e('<div 
id="context-menu-layer"></div>').css({height:i.height(),width:i.width(),display:"block",position:"fixed","z-index":n,top:0,left:0,opacity:0,filter:"alpha(opacity=0)","background-color":"#000"}).data("contextMenuRoot",t).insertBefore(this).on("contextmenu",f.abortevent).on("mousedown",f.layerClick);return
 void 
0===document.body.style.maxWidth&&a.css({position:"absolute",height:e(document).height()}),a},processPromises:function(e,t,n){function
 a(e,t,n){void 0===n&&o(void 0),s(e,t,n)}function o(e,t,n){void 
0===n?(n={error:{name:"No items and no error item",icon:"context-menu-icon 
context-menu-icon-quit"}},window.console&&(console.error||console.log).call(console,'When
 you reject a promise, provide an "items" object, equal to normal sub-menu 
items')):"string"==typeof n&&(n={error:{name:n}}),s(e,t,n)}function 
s(e,t,n){void 
0!==t.$menu&&t.$menu.is(":visible")&&(e.$node.removeClass(t.classNames.iconLoadingClass),e.items=n,h.create(e,t,!0),h.update(e,t),t.positionSubmenu.call(e.$node,e.$menu))}e.$node.addClass(t.classNames.iconLoadingClass),n.then(a.bind(this,e,t),o.bind(this,e,t))}};e.fn.contextMenu=function(t){var
 n=this,a=t;if(this.length>0)if(void 
0===t)this.first().trigger("contextmenu");else if(void 0!==t.x&&void 
0!==t.y)this.first().trigger(e.Event("contextmenu",{pageX:t.x,pageY:t.y,mouseButton:t.button}));else
 if("hide"===t){var 
o=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;o&&o.trigger("contextmenu:hide")}else"destroy"===t?e.contextMenu("destroy",{context:this}):e.isPlainObject(t)?(t.context=this,e.contextMenu("create",t)):t?this.removeClass("context-menu-disabled"):t||this.addClass("context-menu-disabled");else
 
e.each(l,function(){this.selector===n.selector&&(a.data=this,e.extend(a.data,{trigger:"demand"}))}),f.contextmenu.call(a.target,a);return
 this},e.contextMenu=function(t,n){"string"!=typeof 
t&&(n=t,t="create"),"string"==typeof n?n={selector:n}:void 0===n&&(n={});var 
a=e.extend(!0,{},d,n||{}),o=e(document),i=o,u=!1;switch(a.context&&a.context.length?(i=e(a.context).first(),a.context=i.get(0),u=!e(a.context).is(document)):a.context=document,t){case"create":if(!a.selector)throw
 new Error("No selector 
specified");if(a.selector.match(/.context-menu-(list|item|input)($|\s)/))throw 
new Error('Cannot bind to selector "'+a.selector+'" as it contains a reserved 
className');if(!a.build&&(!a.items||e.isEmptyObject(a.items)))throw new 
Error("No Items 
specified");if(c++,a.ns=".contextMenu"+c,u||(r[a.selector]=a.ns),l[a.ns]=a,a.trigger||(a.trigger="right"),!s){var
 
m="click"===a.itemClickEvent?"click.contextMenu":"mouseup.contextMenu",p={"contextmenu:focus.contextMenu":f.focusItem,"contextmenu:blur.contextMenu":f.blurItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.itemMouseenter,"mouseleave.contextMenu":f.itemMouseleave};p[m]=f.itemClick,o.on({"contextmenu:hide.contextMenu":f.hideMenu,"prevcommand.contextMenu":f.prevItem,"nextcommand.contextMenu":f.nextItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.menuMouseenter,"mouseleave.contextMenu":f.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",f.inputClick).on(p,".context-menu-item"),s=!0}switch(i.on("contextmenu"+a.ns,a.selector,a,f.contextmenu),u&&i.on("remove"+a.ns,function(){e(this).contextMenu("destroy")}),a.trigger){case"hover":i.on("mouseenter"+a.ns,a.selector,a,f.mouseenter).on("mouseleave"+a.ns,a.selector,a,f.mouseleave);break;case"left":i.on("click"+a.ns,a.selector,a,f.click)}a.build||h.create(a);break;case"destroy":var
 x;if(u){var 
g=a.context;e.each(l,function(t,n){if(!n)return!0;if(!e(g).is(n.selector))return!0;x=e(".context-menu-list").filter(":visible"),x.length&&x.data().contextMenuRoot.$trigger.is(e(n.context).find(n.selector))&&x.trigger("contextmenu:hide",{force:!0});try{l[n.ns].$menu&&l[n.ns].$menu.remove(),delete
 l[n.ns]}catch(e){l[n.ns]=null}return e(n.context).off(n.ns),!0})}else 
if(a.selector){if(r[a.selector]){x=e(".context-menu-list").filter(":visible"),x.length&&x.data().contextMenuRoot.$trigger.is(a.selector)&&x.trigger("contextmenu:hide",{force:!0});try{l[r[a.selector]].$menu&&l[r[a.selector]].$menu.remove(),delete
 l[r[a.selector]]}catch(e){l[r[a.selector]]=null}o.off(r[a.selector])}}else 
o.off(".contextMenu 
.contextMenuAutoHide"),e.each(l,function(t,n){e(n.context).off(n.ns)}),r={},l={},c=0,s=!1,e("#context-menu-layer,
 
.context-menu-list").remove();break;case"html5":(!e.support.htmlCommand&&!e.support.htmlMenuitem||"boolean"==typeof
 
n&&n)&&e('menu[type="context"]').each(function(){this.id&&e.contextMenu({selector:"[contextmenu="+this.id+"]",items:e.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw
 new Error('Unknown operation "'+t+'"')}return 
this},e.contextMenu.setInputValues=function(t,n){void 
0===n&&(n={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":t.value=n[e]||"";break;case"checkbox":t.selected=!!n[e];break;case"radio":t.selected=(n[t.radio]||"")===t.value;break;case"select":t.selected=n[e]||""}})},e.contextMenu.getInputValues=function(t,n){return
 void 
0===n&&(n={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":case"select":n[e]=t.$input.val();break;case"checkbox":n[e]=t.$input.prop("checked");break;case"radio":t.$input.prop("checked")&&(n[t.radio]=t.value)}}),n},e.contextMenu.fromMenu=function(t){var
 n=e(t),o={};return 
a(o,n.children()),o},e.contextMenu.defaults=d,e.contextMenu.types=u,e.contextMenu.handle=f,e.contextMenu.op=h,e.contextMenu.menus=l});
 //# sourceMappingURL=jquery.contextMenu.min.js.map

Modified: 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js.map
===================================================================
--- 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js.map
   2017-02-17 09:16:49 UTC (rev 16330)
+++ 
branches/Version-2_0-branch/phpgwapi/js/contextMenu/jquery.contextMenu.min.js.map
   2017-02-17 09:20:25 UTC (rev 16331)
@@ -1 +1 @@

@@ Diff output truncated at 153600 characters. @@



reply via email to

[Prev in Thread] Current Thread [Next in Thread]