});
});
+ // toggle for long content (variables, python stack trace, etc)
+ $('.full, .full-hide').hide();
+ $('.full-show').click(function(){
+ $('.full').slideDown(function(){
+ $('.full-hide').show();
+ });
+ $(this).hide();
+ });
+ $('.full-hide').click(function(){
+ $(this).hide();
+ $('.full').slideUp(function(){
+ $('.full-show').show();
+ });
+ });
+
});
}
</script>
-<script>
- $(document).ready(function() {
- //show or hide selected columns on load
- $("input:checkbox").each(function(){
- var selectedType = $(this).val();
- if($(this).is(":checked")){
- $("."+selectedType).show();
- }
- else{
- $("."+selectedType).hide();
- }
- });
- //edit columns functionality (show / hide table columns)
- $("input:checkbox").change();
- $("input:checkbox").change(function(){
- var selectedType = $(this).val();
- if($(this).is(":checked")){
- $("."+selectedType).show();
- }
- else{
- $("."+selectedType).hide();
- }
- });
- //turn edit columns dropdown into a multi-select menu
- $('.dropdown-menu input, .dropdown-menu label').click(function(e) {
- e.stopPropagation();
- });
- //show help information inside modal dialogs
- $("#filter-variables i").tooltip({ html: true, delay: {show: 500} });
- //show applied filter tooltip
- $('.filtered').tooltip({container:'body', placement:'bottom', delay:{hide:1500}, html:true});
- //hide the applied filter tooltip when you click the filter button
- $('.btn-primary').on('click', function () {
- $('.tooltip').hide();
- });
-
- $('.full-variable, .full-variable-hide').hide();
- $('.full-variable-show').click(function(){
- $('.full-variable').slideDown(function(){
- $('.full-variable-hide').show();
- });
- $(this).hide();
- });
- $('.full-variable-hide').click(function(){
- $(this).hide();
- $('.full-variable').slideUp(function(){
- $('.full-variable-show').show();
- });
- });
- });
-</script>
-
</head>
<body style="height: 100%">
<h4>{{variable.variable_name}} value is:</h4>
<p>
<span>{{variable.variable_value|string_slice:':570'}}
- <span class="full-variable"> {{variable.variable_value|string_slice:'570:'}}
+ <span class="full"> {{variable.variable_value|string_slice:'570:'}}
</span>
- <a class="btn btn-mini full-variable-show">...</a>
+ <a class="btn btn-mini full-show">...</a>
</span>
</p>
- <a class="btn btn-mini full-variable-hide">Collapse variable value<i class="icon-caret-up"></i>
+ <a class="btn btn-mini full-hide">Collapse variable value<i class="icon-caret-up"></i>
</a>
{% endif %}
{% else %}