minor changes

This commit is contained in:
coderaiser 2012-12-23 10:21:22 -05:00
parent 192598101a
commit 7fc3adf008
2 changed files with 13 additions and 6 deletions

View file

@ -37,6 +37,16 @@ to cloudcmd.js
* Fixed bug with pressing Esc when menu showed.
We could not to now, when key was pressed becaouse of
stopPropogation function in jquery.contextMenu module.
Commented stopPropogration.
```
keyStop: function(e, opt) {
if (!opt.isInput) {
e.preventDefault();
}
//e.stopPropagation();
}
```
2012.12.12, Version 0.1.8

View file

@ -93,8 +93,7 @@ var // currently active contextMenu trigger
},
// position menu
position: function(opt, x, y) {
var $this = this,
offset;
var offset;
// determine contextMenu position
if (!x && !y) {
opt.determinePosition.call(this, opt.$menu);
@ -106,7 +105,7 @@ var // currently active contextMenu trigger
// x and y are given (by mouse event)
var triggerIsFixed = opt.$trigger.parents().andSelf()
.filter(function() {
return $($this).css('position') == "fixed";
return $(this).css('position') == "fixed";
}).length;
if (triggerIsFixed) {
@ -431,9 +430,7 @@ var // currently active contextMenu trigger
//e.stopPropagation();
},
key: function(e) {
var opt = $currentTrigger.data('contextMenu') || {},
$children = opt.$menu.children(),
$round;
var opt = $currentTrigger.data('contextMenu') || {};
switch (e.keyCode) {
case 9: