Commit 1186fd0cebd4db017bbc6bc531b5b5f83a62710f

Annotations popup is sleek does not have overlay
  
1414 width: 700px;
1515 box-shadow: 3px 3px 3px #468847;
1616}
17#list-anno {
18 width: 500px;
19 margin: -250px 0 0 28%;
20}
  
4242 function(data) {
4343 //console.log(data);
4444 $('#list-anno .modal-body').html(data);
45 $('#list-anno').modal();
45 $('#list-anno').modal({
46 backdrop: false,
47 });
4648 });
4749 };
4850
7777 '<div id="list-anno" class="modal hide fade" role="dialog" aria-labelledby="list-anno-label" aria-hidden="true">'+
7878 ' <div class="modal-header">'+
7979 ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>'+
80 ' <button type="button" class="pull-right" onclick="shiftModal();" style="margin-right:10px;">&hArr;</button>'+
8081 ' <h3>Annotations</h3>'+
8182 ' </div>'+
8283 ' <div class="modal-body">'+
8787 ' </div>'+
8888 '</div>';
8989 };
90 window.shiftModal = function() {
91 var margin_left = $('#list-anno').css('marginLeft');
92 var margin = Number(margin_left.split('px')[0]);
93 console.log(margin);
94 if(margin < 100) {
95 $('#list-anno').css('marginLeft', '28%');
96 }
97 else {
98 $('#list-anno').css('marginLeft', '-28%');
99 }
100 };
90101
91102 var modal_template = function() {
92103 return '<div id="annotation-tree" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <div id="myModalLabel"> <h3>Annotation attributes</h3> <small>Select attributes for annotation</small> </div> </div> <div class="modal-body"> <div id="stats"> <div id="node-info"></div> <div id="selected-nodes"></div> </div> <div id="infovis"></div> <div id="status"></div> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button class="btn btn-primary" onclick="closeAnnotationTree();">Save changes</button> </div> </div>';
127127 event.stopPropagation();
128128 event.preventDefault();
129129 var elem = event.target;
130 elem.removeEventListener('click', onClick);
130131 elem.style.border = 'none';
131132 elem.style.boxShadow = '';
132133 //console.log('clicked', elem);
  
11{% for obj in content %}
22<div class="well">
33{% for key in content[obj].keys() %}
4<p><b>{{ key }}</b>: {{ content[obj][key] }}</p>
4 <p><b>{{ key }}</b>: {{ content[obj][key] }}</p>
55{% endfor %}
66</div>
77{% endfor %}