[Advanced logbook] Added striped table and css so that marked lines will have correct color
这个提交包含在:
		
							父节点
							
								
									7e8437c182
								
							
						
					
					
						当前提交
						47c435e3e6
					
				
					共有  3 个文件被更改,包括 13 次插入 和 5 次删除
				
			
		|  | @ -177,7 +177,7 @@ | ||||||
| 		<span id="infoBox"></span> | 		<span id="infoBox"></span> | ||||||
| 	</div> | 	</div> | ||||||
| 	</div> | 	</div> | ||||||
| 	<table style="width:100%" class="table-sm table table-bordered table-hover table-condensed text-center" id="qsoList"> | 	<table style="width:100%" class="table-sm table table-bordered table-hover table-striped table-condensed text-center" id="qsoList"> | ||||||
| 		<thead> | 		<thead> | ||||||
| 			<tr> | 			<tr> | ||||||
| 				<th><div class="form-check" style="margin-top: -1.5em"><input class="form-check-input" type="checkbox" id="checkBoxAll" /></div></th> | 				<th><div class="form-check" style="margin-top: -1.5em"><input class="form-check-input" type="checkbox" id="checkBoxAll" /></div></th> | ||||||
|  |  | ||||||
|  | @ -424,3 +424,11 @@ div#station_logbooks_linked_table_paginate { | ||||||
| .qso_panel .dxccsummaryheader { | .qso_panel .dxccsummaryheader { | ||||||
|     cursor: pointer; |     cursor: pointer; | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | .table-striped>tbody>tr.activeRow { | ||||||
|  |     background-color: #5cb85c; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .activeRow a { | ||||||
|  |     color: #fff !important; | ||||||
|  | } | ||||||
|  | @ -118,13 +118,13 @@ function processNextCallbookItem() { | ||||||
| function selectQsoID(qsoID) { | function selectQsoID(qsoID) { | ||||||
| 	var element = $("#qsoID-" + qsoID); | 	var element = $("#qsoID-" + qsoID); | ||||||
| 	element.find("input[type=checkbox]").prop("checked", true); | 	element.find("input[type=checkbox]").prop("checked", true); | ||||||
| 	element.addClass('alert-success'); | 	element.addClass('activeRow'); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function unselectQsoID(qsoID) { | function unselectQsoID(qsoID) { | ||||||
| 	var element = $("#qsoID-" + qsoID); | 	var element = $("#qsoID-" + qsoID); | ||||||
| 	element.find("input[type=checkbox]").prop("checked", false); | 	element.find("input[type=checkbox]").prop("checked", false); | ||||||
| 	element.removeClass('alert-success'); | 	element.removeClass('activeRow'); | ||||||
| 	$('#checkBoxAll').prop("checked", false); | 	$('#checkBoxAll').prop("checked", false); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -181,9 +181,9 @@ $(document).ready(function () { | ||||||
| 
 | 
 | ||||||
| 	$('#qsoList').on('click', 'input[type="checkbox"]', function() { | 	$('#qsoList').on('click', 'input[type="checkbox"]', function() { | ||||||
| 		if ($(this).is(":checked")) { | 		if ($(this).is(":checked")) { | ||||||
| 			$(this).closest('tr').addClass('alert-success'); | 			$(this).closest('tr').addClass('activeRow'); | ||||||
| 		} else { | 		} else { | ||||||
| 			$(this).closest('tr').removeClass('alert-success'); | 			$(this).closest('tr').removeClass('activeRow'); | ||||||
| 		} | 		} | ||||||
| 	}); | 	}); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用