mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-26 23:07:17 +00:00
check if element is sortable before removing sortable property
This commit is contained in:
parent
9d11aaf829
commit
5234e97d5e
@ -273,7 +273,9 @@ function webSocketConnect() {
|
|||||||
* some browsers, such as Safari, from changing the normalization form of the
|
* some browsers, such as Safari, from changing the normalization form of the
|
||||||
* URI from NFD to NFC, breaking our link with MPD.
|
* URI from NFD to NFC, breaking our link with MPD.
|
||||||
*/
|
*/
|
||||||
|
if ($('#salamisandwich > tbody').is(':ui-sortable')) {
|
||||||
$('#salamisandwich > tbody').sortable('destroy');
|
$('#salamisandwich > tbody').sortable('destroy');
|
||||||
|
}
|
||||||
for (var item in obj.data) {
|
for (var item in obj.data) {
|
||||||
switch(obj.data[item].type) {
|
switch(obj.data[item].type) {
|
||||||
case "directory":
|
case "directory":
|
||||||
|
Loading…
Reference in New Issue
Block a user