Skip to content

Commit

Permalink
separate clicking and checking, and submit part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Apr 12, 2024
1 parent c2348d8 commit 45c31c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
8 changes: 4 additions & 4 deletions src/main/webapp/iaResults.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -933,10 +933,10 @@ console.log('algoDesc %o %s %s', res.status._response.response.json_result.query
console.log('mouse click with num viewers: '+viewers.size);
$('.annot-summary').css('background-color', '');
$(this).css('background-color', '#8E8');
const checkbox = $(this).find('.annot-action-checkbox-inactive');
if (checkbox.length) {
checkbox.click();
}
// const checkbox = $(this).find('.annot-action-checkbox-inactive');
// if (checkbox.length) {
// checkbox.click();
// }
annotClick(ev);
Expand Down
18 changes: 3 additions & 15 deletions src/main/webapp/submit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
<!-- Select2 JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js" defer></script>

<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script> -->


<jsp:include page="header.jsp" flush="true"/>

Expand Down Expand Up @@ -94,21 +92,11 @@ String mapKey = CommonConfiguration.getGoogleMapsKey(context);
%>

<script>
$(document).ready( function() {
const locationIDSelector = document.getElementById('locationID');
console.log("---------================",locationIDSelector);
// console.log('+++++++++++++++++++++++++',locationIDSelector.select2());
console.log("1111111",$);
setTimeout(function() {
console.log("2224444",$.fn.select2);
$('#locationID').select2();
}, 1000);
$(document).ready( function() {
// locationIDSelector.select2();
$('#locationID').select2({width: '100%', height:'50px'});
$('#country').select2({width: '100%', height:'50px'});
// $('#locationID').select2();
populateProjectNameDropdown([],[],"", false, getDefaultSelectedProject(), getDefaultSelectedProjectId(), getLoggedOutDefaultDesired());
<%
if(user != null){
Expand Down

0 comments on commit 45c31c5

Please sign in to comment.