Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LimeSurvey/LimeSurvey
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Oct 4, 2013
2 parents 2f4458c + e7d7562 commit b0e6681
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/ranking.js
Expand Up @@ -54,6 +54,12 @@ function doDragDropRank(qID, showpopups, samechoiceheight, samelistheight) {
}
});
loadDragDropRank(qID);

var sortableDelay = 200;
if (!$.support.leadingWhitespace) {
// IE 7 and 8 (bug 08019)
sortableDelay = 0;
}

// Set up the connected sortable
$('#sortable-choice-'+qID+', #sortable-rank-'+qID+'').sortable({
Expand All @@ -62,7 +68,7 @@ function doDragDropRank(qID, showpopups, samechoiceheight, samelistheight) {
forcePlaceholderSize: true,
placeholder: 'ui-sortable-placeholder',
helper: 'clone',
delay: 200,
delay: sortableDelay,
revert: 50,
receive: function(event, ui) {
if($(this).attr("id")=='sortable-rank-'+qID && $(maxanswers>0 && '#sortable-rank-'+qID+' li').length > maxanswers) {
Expand Down

0 comments on commit b0e6681

Please sign in to comment.