mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
192598101a
commit
7fc3adf008
2 changed files with 13 additions and 6 deletions
10
ChangeLog
10
ChangeLog
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue