Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3ba0c6a

Browse files
adding hiding button for grid metadata
1 parent a616d89 commit 3ba0c6a

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

‎static/adj.js‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,22 @@ var initializeGridListeners = function() {
492492
});
493493
})
494494
.fail(function() { return makeError("Could not load modal."); })
495-
})
495+
});
496+
497+
// Toggle metadata visibility.
498+
$('#hide-metadata').click(function(e) {
499+
$('.expanded-event-variable-metadata').hide();
500+
$('.canonical-event-metadata .expanded-event-variable').hide();
501+
$('#show-metadata').show();
502+
$('#hide-metadata').hide();
503+
});
504+
505+
$('#show-metadata').click(function(e) {
506+
$('.expanded-event-variable-metadata').show();
507+
$('.canonical-event-metadata .expanded-event-variable').show();
508+
$('#show-metadata').hide();
509+
$('#hide-metadata').show();
510+
});
496511

497512
// Copy current text to clipboard
498513
$('.copy-text').click(function(e) {

‎templates/adj-grid.html‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
{% else %}
77
<div id="expanded-event-view-metadata" class="sticky-top">
88
<div class="row expanded-event-variable-group">
9-
<div class="col-sm-1 expanded-event-variable-name">metadata</div>
9+
<div class="col-sm-1 expanded-event-variable-name">
10+
metadata
11+
<a href="#" id="hide-metadata" title="Hide metadata">
12+
<span class="glyphicon glyphicon-chevron-up"></span>
13+
</a>
14+
<a href="#" id="show-metadata" style="display:none;" title="Show metadata">
15+
<span class="glyphicon glyphicon-chevron-down"></span>
16+
</a>
17+
</div>
1018
{% for event_id in cand_events.keys()|sort %}
1119
<!-- Candidate Event Metadata -->
1220
<div class="col-sm-2 expanded-event-variable-col candidate-event"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /