Skip to content

Commit

Permalink
Fixed issue #08019: Ranking selection difficult/buggy using IE8
Browse files Browse the repository at this point in the history
Dev: Removed delay option for sortable in IE 7 and 8
  • Loading branch information
tpartner committed Oct 4, 2013
1 parent 8e2ffd6 commit e7d7562
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) {

This comment has been minimized.

Copy link
@Shnoulle

Shnoulle Oct 4, 2013

Collaborator

Great test for IE7/8 !

Thanks :)

// 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 e7d7562

Please sign in to comment.