fix BUG-125: right-click changes highlight if its not in the highlight set
This commit is contained in:
4
BUGs
4
BUGs
@@ -1,10 +1,6 @@
|
|||||||
### Next: 146
|
### Next: 146
|
||||||
BUG-143: if I skip next fast enough in files_ip, it can get the warning about changes to entry list... (would have though I disabled next page until loaded)
|
BUG-143: if I skip next fast enough in files_ip, it can get the warning about changes to entry list... (would have though I disabled next page until loaded)
|
||||||
BUG-140: When db is restarted underneath PA, it crashes job mgr... It should just accept timeouts, and keep trying to reconnect every 2? mins
|
BUG-140: When db is restarted underneath PA, it crashes job mgr... It should just accept timeouts, and keep trying to reconnect every 2? mins
|
||||||
BUG-125: when an image is highlighted, then post the contextmenu on a different image - the highlight does not move to the new image
|
|
||||||
and the selected menu function processes the original or the new depending on the way the code works.
|
|
||||||
There is a chance we need to change the document on click to a mouse down (or whatever the context menu
|
|
||||||
uses for default), rather than just fix the highlight
|
|
||||||
BUG-118: can move files from Bin path, but it leaves the del_file entry for it - need to remove it
|
BUG-118: can move files from Bin path, but it leaves the del_file entry for it - need to remove it
|
||||||
BUG-117: when search returns files that can be deleted and/or restored, the icon stays as delete and tries to delete!
|
BUG-117: when search returns files that can be deleted and/or restored, the icon stays as delete and tries to delete!
|
||||||
BUG-106: cant add trudy /pat? as refimgs via FaceDBox
|
BUG-106: cant add trudy /pat? as refimgs via FaceDBox
|
||||||
|
|||||||
@@ -916,6 +916,12 @@ $.contextMenu({
|
|||||||
selector: '.entry',
|
selector: '.entry',
|
||||||
itemClickEvent: "click",
|
itemClickEvent: "click",
|
||||||
build: function($triggerElement, e) {
|
build: function($triggerElement, e) {
|
||||||
|
// if we are not in the highlight set, then move the highlight to this element
|
||||||
|
if( ! $(e.currentTarget).is('.highlight') )
|
||||||
|
{
|
||||||
|
$('.highlight').removeClass('highlight');
|
||||||
|
$(e.currentTarget).addClass('highlight')
|
||||||
|
}
|
||||||
// when right-clicking & no selection add one OR deal with ctrl/shift right-lick as it always changes seln
|
// when right-clicking & no selection add one OR deal with ctrl/shift right-lick as it always changes seln
|
||||||
if( NoSel() || e.ctrlKey || e.shiftKey )
|
if( NoSel() || e.ctrlKey || e.shiftKey )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user