Commit 9d2b821c by ichuang

change edit link showhide to use <a> instead of <input> type submit

(fixes issues with edit links in multipart problems and video)
parent 96252aea
...@@ -3,12 +3,8 @@ ${module_content} ...@@ -3,12 +3,8 @@ ${module_content}
<div><a href="${edit_link}">Edit</a></div> <div><a href="${edit_link}">Edit</a></div>
% endif % endif
<script type="text/javascript">
$('#${element_id}_showhide').click(function(){$('#${element_id}_debug').toggle(); })
</script>
<div class="staff_info"> <div class="staff_info">
<input type="submit" id="${element_id}_showhide" value="Staff Debug Info"/> <a href="javascript:void(0)" onclick="javascript:$('#${element_id}_debug').toggle()">Staff Debug Info</a>
<span style="display:none" id="${element_id}_debug"> <span style="display:none" id="${element_id}_debug">
definition = <pre>${definition | h}</pre> definition = <pre>${definition | h}</pre>
metadata = ${metadata | h} metadata = ${metadata | h}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment