Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectionUpdate #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion via.html
Original file line number Diff line number Diff line change
Expand Up @@ -2653,6 +2653,7 @@ <h2>File Not Found</h2>
annotation_editor_clear_row_highlight();
annotation_editor_highlight_row( new_region_id );
select_only_region(new_region_id);

}
}
_via_redraw_reg_canvas();
Expand Down Expand Up @@ -6142,11 +6143,19 @@ <h2>File Not Found</h2>
}
}
}

function row_click_handler(e)
{
var id = e.target.id;
var row_id = id.slice(id.search("[0-9]"));
select_only_region(row_id);
_via_redraw_reg_canvas();
}
function annotation_editor_get_metadata_row_html(row_id) {
var row = document.createElement('div');
row.setAttribute('class', 'row');
row.setAttribute('id', 'ae_' + _via_metadata_being_updated + '_' + row_id);
// row.setAttribute('onclick', 'select_only_region('+row_id+')');
row.addEventListener('click', row_click_handler);

if ( _via_metadata_being_updated === 'region' ) {
var rid = document.createElement('span');
Expand Down