Skip to content

Commit

Permalink
Merge pull request openedx#353 from MITx/ichuang/showhide-staff-debug
Browse files Browse the repository at this point in the history
make the staff debug information appear in a show/hide span
  • Loading branch information
cpennington committed Aug 7, 2012
2 parents 0c957ab + 44e1241 commit e2d0ce0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lms/templates/staff_problem_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
%if edit_link:
<div><a href="${edit_link}">Edit</a></div>
% endif

<script type="text/javascript">
$('#${element_id}_showhide').click(function(){$('#${element_id}_debug').toggle(); })
</script>

<div class="staff_info">
<input type="submit" id="${element_id}_showhide" value="Staff Debug Info"/>
<span style="display:none" id="${element_id}_debug">
definition = <pre>${definition | h}</pre>
metadata = ${metadata | h}
</span>
</div>
%if render_histogram:
<div id="histogram_${element_id}" class="histogram" data-histogram="${histogram}"></div>
Expand Down

0 comments on commit e2d0ce0

Please sign in to comment.