sortable and disableSelection are not always defined; lead to issue #615

This commit is contained in:
Tobias Hößl 2013-04-24 19:51:33 +02:00
parent b34677291b
commit 5865a73a3e
1 changed files with 6 additions and 4 deletions

View File

@ -76,8 +76,10 @@ $(function() {
//# $('#hide_closed_items').attr('checked', true);
//# }
$('#list_of_speakers').sortable({axis: "y", containment: "parent", update: function(event, ui) {
$('#speaker_list_changed_form').show();
}});
$('#list_of_speakers').disableSelection();
if ($('#list_of_speakers').length > 0) {
$('#list_of_speakers').sortable({axis: "y", containment: "parent", update: function(event, ui) {
$('#speaker_list_changed_form').show();
}});
$('#list_of_speakers').disableSelection();
}
});