Skip to content

Commit

Permalink
Fixed issue 05587: Unable to take ranking questions on Android phone …
Browse files Browse the repository at this point in the history
…browsers

Dev Changed onclick to onChange for ranking question selection
DEv The BlackBerry OS doesn't recognize onclick for <select> elements

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@11399 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Tony Partner committed Nov 18, 2011
1 parent 9c2f207 commit 3a7b88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -2852,7 +2852,7 @@ function do_ranking($ia)
$maxselectlength=0;
$choicelist = "<select size=\"$anscount\" name=\"CHOICES_{$ia[0]}\" ";
if (isset($choicewidth)) {$choicelist.=$choicewidth;}
$choicelist .= " id=\"CHOICES_{$ia[0]}\" onclick=\"if (this.options.length>0 && this.selectedIndex<0) {this.options[this.options.length-1].selected=true;}; rankthis_{$ia[0]}(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text)\" class=\"select\">\n";
$choicelist .= " id=\"CHOICES_{$ia[0]}\" onChange=\"alert (77);if (this.options.length>0 && this.selectedIndex<0) {this.options[this.options.length-1].selected=true;}; rankthis_{$ia[0]}(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text)\" class=\"select\">\n";

foreach ($answers as $ans)
{
Expand Down

0 comments on commit 3a7b88f

Please sign in to comment.