CC-6060 - Fix breaking tooltips when viewing context menu in library
This commit is contained in:
parent
9ba6ab3ef7
commit
a3f1cf1d56
|
@ -720,17 +720,19 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
// icon.
|
// icon.
|
||||||
$(nRow).find("td:not(.library_checkbox, .library_type)").qtip({
|
$(nRow).find("td:not(.library_checkbox, .library_type)").qtip({
|
||||||
content: {
|
content: {
|
||||||
text: $.i18n._("Loading..."),
|
text: function(event, api) {
|
||||||
|
$.get(baseUrl+"library/get-file-metadata",
|
||||||
|
({format: "html", id : aData.id, type: aData.ftype}),
|
||||||
|
function (html) {
|
||||||
|
api.set('content.text', html);
|
||||||
|
}, "html")
|
||||||
|
.fail(function (xhr, status, error) {
|
||||||
|
api.set('content.text', status + ': ' + error)
|
||||||
|
});
|
||||||
|
return 'Loading...';
|
||||||
|
},
|
||||||
title: {
|
title: {
|
||||||
text: aData.track_title
|
text: aData.track_title
|
||||||
},
|
|
||||||
ajax: {
|
|
||||||
url: baseUrl+"Library/get-file-metadata",
|
|
||||||
type: "get",
|
|
||||||
data: ({format: "html", id : aData.id, type: aData.ftype}),
|
|
||||||
success: function(data, status) {
|
|
||||||
this.set('content.text', data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
position: {
|
position: {
|
||||||
|
@ -753,7 +755,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
show: function(event, api) {
|
show: function(event, api) {
|
||||||
// Only show the tooltip if it was a right-click
|
// Only show the tooltip if it was a right-click
|
||||||
if(event.originalEvent.button !== 2) {
|
if(event.originalEvent.button !== 2) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue