full_path = full_path + chunk;
$('#breadcrump').append(
- '<li><a uri="' + encodeURIComponent(full_path) + '">' + chunk + '</a></li>'
+ '<li><a uri="' +
+ encodeURIComponent(full_path) +
+ '">' +
+ chunk +
+ '</a></li>'
);
full_path += '/';
});
/* The use of encodeURIComponent() below might seem useless, but it's not. It prevents
* some browsers, such as Safari, from changing the normalization form of the
* URI from NFD to NFC, breaking our link with MPD.
- *
- * encodeURIComponent() instead of encodeURI() is used to ensure special characters
- * (like e.g. +) are handled correctly.
+ *
+ * encodeURIComponent() instead of encodeURI() is used to ensure special characters
+ * (like e.g. +) are handled correctly.
*/
if ($('#salamisandwich > tbody').is(':ui-sortable')) {
$('#salamisandwich > tbody').sortable('destroy');
}
$('#salamisandwich > tbody').append(
'<tr uri="' +
- encodeURIComponent(obj.data[item].plist) +
+ encodeURIComponent(
+ obj.data[item].plist
+ ) +
'" class="' +
clazz +
'">' +
case 'song':
socket.send(
'MPD_API_ADD_TRACK,' +
- decodeURIComponent($(this).attr('uri'))
+ decodeURIComponent(
+ $(this).attr('uri')
+ )
);
$('.top-right')
.notify({
case 'plist':
socket.send(
'MPD_API_ADD_PLAYLIST,' +
- decodeURIComponent($(this).attr('uri'))
+ decodeURIComponent(
+ $(this).attr('uri')
+ )
);
$('.top-right')
.notify({