Skip to content

Commit

Permalink
Fix graphics for toggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
bostelm committed Jan 12, 2015
1 parent 36da8b5 commit d5e475e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studentview.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
$collegues .= " $picture $name<br/>";
}
$collegues .= '</div>';
$aSlot->groupsession .= " <a href=\"javascript:toggleVisibility('{$aSlot->id}')\"><img name=\"group<?php p($aSlot->id) ?>\" src=\"{$CFG->wwwroot}/pix/t/switch_plus.gif\" border=\"0\" title=\"".get_string('whosthere', 'scheduler')."\"></a> {$collegues}";
$aSlot->groupsession .= " <a href=\"javascript:toggleVisibility('{$aSlot->id}')\"><img name=\"group<?php p($aSlot->id) ?>\" src=\"{$CFG->wwwroot}/pix/t/switch_plus.png\" border=\"0\" title=\"".get_string('whosthere', 'scheduler')."\"></a> {$collegues}";
}
$canappoint = true;
$canusegroup = ($aSlot->appointed) ? 0 : 1;
Expand Down Expand Up @@ -294,11 +294,11 @@ function toggleVisibility(id){
if (obj.style.visibility == "hidden"){
obj.style.visibility = "visible";
obj.style.display = "block";
document.images["group"+id].src='<?php echo $CFG->wwwroot."/pix/t/switch_minus.gif" ?>';
document.images["group"+id].src='<?php echo $CFG->wwwroot."/pix/t/switch_minus.png" ?>';
} else {
obj.style.visibility = "hidden";
obj.style.display = "none";
document.images["group"+id].src='<?php echo $CFG->wwwroot."/pix/t/switch_plus.gif" ?>';
document.images["group"+id].src='<?php echo $CFG->wwwroot."/pix/t/switch_plus.png" ?>';
}
}
</script>
Expand Down

0 comments on commit d5e475e

Please sign in to comment.