/usr/share/libubuntuoneui/1/javascript/u1-songs-clickable.js is in libubuntuoneui-3.0-1 3.0.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | function makeSongClickable(li) {
var md = li.getElementsByClassName("metadata");
if (md.length == 1) {
md[0].onclick = function(){
var dp = this.parentNode.getAttribute("data-path")
window.status = "u1playlibrary:::" + dp;
return false;
}
li.className += " clickable";
}
};
// Add custom clickable CSS
var styleElement = document.createElement("style");
styleElement.type = "text/css";
styleElement.appendChild(document.createTextNode("li.clickable .metadata p { cursor:pointer; color: black; }"));
document.getElementsByTagName("head")[0].appendChild(styleElement);
|