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:
Naomi 2011-03-01 12:25:20 -05:00
parent c936d28d3a
commit 94567ed046
3 changed files with 7 additions and 13 deletions

View File

@ -52,7 +52,7 @@ function addLibraryItemEvents() {
});
$('#library_display tbody tr')
.jjmenu("rightClick",
.jjmenu("click",
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
{id: getId, type: getType},
{xposition: "mouse", yposition: "mouse"});
@ -74,7 +74,7 @@ function dtRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
$(nRow).attr("id", type+'_'+id);
$(nRow).qtip({
$('td:eq(5) img', nRow).qtip({
content: {
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
}
},
position: {
corner: {
//target: 'leftMiddle'
tooltip: 'rightMiddle'
},
adjust: {
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: {
border: {
width: 0,

View File

@ -177,7 +177,7 @@ function eventRender(event, element, view) {
function eventAfterRender( event, element, view ) {
$(element)
.jjmenu("rightClick",
.jjmenu("click",
[{get:"/Schedule/make-context-menu/format/json/id/#id#"}],
{id: event.id},
{xposition: "mouse", yposition: "mouse"});

View File

@ -44,7 +44,7 @@
{
global.click(
function(event) {
if (this == event.target) {
if (this == event.currentTarget) {
global.pageX = event.pageX;
global.pageY = event.pageY;
event.preventDefault();