CC-1969 made all menus left click activated instead to prevent mac problems. metadata for a file can now be seen by hovering over the "type" icon
This commit is contained in:
parent
c936d28d3a
commit
94567ed046
|
@ -52,7 +52,7 @@ function addLibraryItemEvents() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#library_display tbody tr')
|
$('#library_display tbody tr')
|
||||||
.jjmenu("rightClick",
|
.jjmenu("click",
|
||||||
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
|
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
|
||||||
{id: getId, type: getType},
|
{id: getId, type: getType},
|
||||||
{xposition: "mouse", yposition: "mouse"});
|
{xposition: "mouse", yposition: "mouse"});
|
||||||
|
@ -74,7 +74,7 @@ function dtRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||||
|
|
||||||
$(nRow).attr("id", type+'_'+id);
|
$(nRow).attr("id", type+'_'+id);
|
||||||
|
|
||||||
$(nRow).qtip({
|
$('td:eq(5) img', nRow).qtip({
|
||||||
|
|
||||||
content: {
|
content: {
|
||||||
url: '/Library/get-file-meta-data',
|
url: '/Library/get-file-meta-data',
|
||||||
|
@ -85,20 +85,14 @@ function dtRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||||
button: 'Close' // Show a close link in the title
|
button: 'Close' // Show a close link in the title
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
position: {
|
position: {
|
||||||
corner: {
|
|
||||||
//target: 'leftMiddle'
|
|
||||||
tooltip: 'rightMiddle'
|
|
||||||
},
|
|
||||||
adjust: {
|
adjust: {
|
||||||
screen: true // Keep the tooltip on-screen at all times
|
screen: true // Keep the tooltip on-screen at all times
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
show: {
|
|
||||||
when: 'click',
|
|
||||||
solo: true // Only show one tooltip at a time
|
|
||||||
},
|
|
||||||
hide: 'click',
|
|
||||||
style: {
|
style: {
|
||||||
border: {
|
border: {
|
||||||
width: 0,
|
width: 0,
|
||||||
|
|
|
@ -177,7 +177,7 @@ function eventRender(event, element, view) {
|
||||||
function eventAfterRender( event, element, view ) {
|
function eventAfterRender( event, element, view ) {
|
||||||
|
|
||||||
$(element)
|
$(element)
|
||||||
.jjmenu("rightClick",
|
.jjmenu("click",
|
||||||
[{get:"/Schedule/make-context-menu/format/json/id/#id#"}],
|
[{get:"/Schedule/make-context-menu/format/json/id/#id#"}],
|
||||||
{id: event.id},
|
{id: event.id},
|
||||||
{xposition: "mouse", yposition: "mouse"});
|
{xposition: "mouse", yposition: "mouse"});
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
{
|
{
|
||||||
global.click(
|
global.click(
|
||||||
function(event) {
|
function(event) {
|
||||||
if (this == event.target) {
|
if (this == event.currentTarget) {
|
||||||
global.pageX = event.pageX;
|
global.pageX = event.pageX;
|
||||||
global.pageY = event.pageY;
|
global.pageY = event.pageY;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue