Merge pull request #621 from CatoTH/Issue615

sortable and disableSelection are not always defined; lead to issue #615
This commit is contained in:
Oskar Hahn 2013-04-25 06:16:32 -07:00
commit 017561572d

View File

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