Skip to content

Commit

Permalink
Dev Changed onclick to onchange for list-with-comment (dropdown)
Browse files Browse the repository at this point in the history
Dev The BlackBerry OS doesn't recognize onclick for <select> elements

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@11401 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Tony Partner committed Nov 18, 2011
1 parent c758e0f commit 33cfb48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qanda.php
Expand Up @@ -2639,7 +2639,7 @@ function do_listwithcomment($ia)
{
// --> START NEW FEATURE - SAVE
$answer .= '<p class="select">
<select class="select" name="'.$ia[1].'" id="answer'.$ia[1].'" onclick="'.$checkconditionFunction.'(this.value, this.name, this.type)" >
<select class="select" name="'.$ia[1].'" id="answer'.$ia[1].'" onchange="'.$checkconditionFunction.'(this.value, this.name, this.type)" >
';
// --> END NEW FEATURE - SAVE
while ($ansrow=$ansresult->FetchRow())
Expand Down 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]}\" onChange=\"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=\"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 33cfb48

Please sign in to comment.