add pwd button (show/hide)
这个提交包含在:
		
							父节点
							
								
									b155011866
								
							
						
					
					
						当前提交
						1748e298ba
					
				
					共有  4 个文件被更改,包括 42 次插入 和 39 次删除
				
			
		|  | @ -3088,9 +3088,7 @@ function viewEqsl(picture, callsign) { | ||||||
|                 } |                 } | ||||||
|                 $('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').hide(); |                 $('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').hide(); | ||||||
|             }); |             }); | ||||||
|             $('.elapse-zone-header-icon').off('click').on('click', elapse_zone_header ); |             $('.btn-pwd-showhide').off('click').on('click', btn_pwd_showhide ); | ||||||
|             $('.help-tooltip').off('click').on('click', help_tooltip ); //.off('mouseleave').on('mouseleave', help_tooltip ) // .off('mouseenter').on('mouseenter', help_tooltip ) 
 |  | ||||||
|             $('.elapse-zone-body div.small.text-muted').off('click').on('click', help_tooltip ); |  | ||||||
|         }); |         }); | ||||||
|     </script> |     </script> | ||||||
| <?php } ?>
 | <?php } ?>
 | ||||||
|  |  | ||||||
|  | @ -57,7 +57,10 @@ | ||||||
| 									 | 									 | ||||||
| 									<div class="mb-3"> | 									<div class="mb-3"> | ||||||
| 										<label><?php echo lang('account_password'); ?></label>
 | 										<label><?php echo lang('account_password'); ?></label>
 | ||||||
|  | 										<div class="input-group"> | ||||||
| 											<input class="form-control" type="password" name="user_password" /> | 											<input class="form-control" type="password" name="user_password" /> | ||||||
|  | 											<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span> | ||||||
|  | 										</div> | ||||||
| 										<?php if(isset($password_error)) { echo "<small class=\"error\">".$password_error."</small>"; } else { ?>
 | 										<?php if(isset($password_error)) { echo "<small class=\"error\">".$password_error."</small>"; } else { ?>
 | ||||||
| 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | ||||||
| 										<?php } ?>
 | 										<?php } ?>
 | ||||||
|  | @ -322,10 +325,10 @@ | ||||||
| 							</div> | 							</div> | ||||||
| 						</div> | 						</div> | ||||||
| 
 | 
 | ||||||
| 						<!-- QSO Page Settings --> | 						<!-- QSO Page Options --> | ||||||
| 						<div class="col-md"> | 						<div class="col-md"> | ||||||
| 							<div class="card"> | 							<div class="card"> | ||||||
| 								<div class="card-header">QSO Page Settings</div> | 								<div class="card-header">QSO Page Options</div> | ||||||
| 								<div class="card-body"> | 								<div class="card-body"> | ||||||
| 									<div class="mb-3"> | 									<div class="mb-3"> | ||||||
| 										<label for="logendtime"><?php echo lang('account_log_end_time'); ?></label>
 | 										<label for="logendtime"><?php echo lang('account_log_end_time'); ?></label>
 | ||||||
|  | @ -401,6 +404,7 @@ | ||||||
| 										</select> | 										</select> | ||||||
| 									</div> | 									</div> | ||||||
| 									 | 									 | ||||||
|  | 									<hr/> | ||||||
| 									<div class="mb-3"> | 									<div class="mb-3"> | ||||||
| 										<label for="quicklog"><?php echo lang('account_quicklog_feature'); ?></label>
 | 										<label for="quicklog"><?php echo lang('account_quicklog_feature'); ?></label>
 | ||||||
| 										<select class="form-select" id="quicklog" name="user_quicklog"> | 										<select class="form-select" id="quicklog" name="user_quicklog"> | ||||||
|  | @ -595,11 +599,11 @@ | ||||||
| 				</div> | 				</div> | ||||||
| 			</div> | 			</div> | ||||||
| 		</div> | 		</div> | ||||||
| 		<!-- ZONE 4 / Validation Synchro --> | 		<!-- ZONE 4 / Confirmation Account --> | ||||||
| 		<div class="accordion-item"> | 		<div class="accordion-item"> | ||||||
| 			<h2 class="accordion-header" id="panelsStayOpen-H_confirmation_account"> | 			<h2 class="accordion-header" id="panelsStayOpen-H_confirmation_account"> | ||||||
| 				<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#panelsStayOpen-B_confirmation_account" aria-expanded="true" aria-controls="panelsStayOpen-B_confirmation_account"> | 				<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#panelsStayOpen-B_confirmation_account" aria-expanded="true" aria-controls="panelsStayOpen-B_confirmation_account"> | ||||||
| 				Miscellaneous</button> | 				Confirmation Account</button> | ||||||
| 			</h2> | 			</h2> | ||||||
| 			<div id="panelsStayOpen-B_confirmation_account" class="accordion-collapse collapse show" aria-labelledby="panelsStayOpen-H_confirmation_account"> | 			<div id="panelsStayOpen-B_confirmation_account" class="accordion-collapse collapse show" aria-labelledby="panelsStayOpen-H_confirmation_account"> | ||||||
| 				<div class="accordion-body"> | 				<div class="accordion-body"> | ||||||
|  | @ -617,7 +621,10 @@ | ||||||
| 
 | 
 | ||||||
| 									<div class="mb-3"> | 									<div class="mb-3"> | ||||||
| 										<label><?php echo lang('account_logbook_of_the_world_lotw_password'); ?></label>
 | 										<label><?php echo lang('account_logbook_of_the_world_lotw_password'); ?></label>
 | ||||||
|  | 										<div class="input-group"> | ||||||
| 											<input class="form-control" type="password" name="user_lotw_password" /> | 											<input class="form-control" type="password" name="user_lotw_password" /> | ||||||
|  | 											<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span> | ||||||
|  | 										</div> | ||||||
| 										<?php if(isset($lotwpassword_error)) { echo "<small class=\"error\">".$lotwpassword_error."</small>"; } else { ?>
 | 										<?php if(isset($lotwpassword_error)) { echo "<small class=\"error\">".$lotwpassword_error."</small>"; } else { ?>
 | ||||||
| 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | ||||||
| 										<?php } ?>
 | 										<?php } ?>
 | ||||||
|  | @ -639,7 +646,10 @@ | ||||||
| 
 | 
 | ||||||
| 									<div class="mb-3"> | 									<div class="mb-3"> | ||||||
| 										<label><?php echo lang('account_eqslcc_password'); ?></label>
 | 										<label><?php echo lang('account_eqslcc_password'); ?></label>
 | ||||||
|  | 										<div class="input-group"> | ||||||
| 											<input class="form-control" type="password" name="user_eqsl_password" /> | 											<input class="form-control" type="password" name="user_eqsl_password" /> | ||||||
|  | 											<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span> | ||||||
|  | 										</div> | ||||||
| 										<?php if(isset($eqslpassword_error)) { echo "<small class=\"error\">".$eqslpassword_error."</small>"; } else { ?>
 | 										<?php if(isset($eqslpassword_error)) { echo "<small class=\"error\">".$eqslpassword_error."</small>"; } else { ?>
 | ||||||
| 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | ||||||
| 										<?php } ?>
 | 										<?php } ?>
 | ||||||
|  | @ -662,7 +672,10 @@ | ||||||
| 
 | 
 | ||||||
| 									<div class="mb-3"> | 									<div class="mb-3"> | ||||||
| 										<label><?php echo lang('account_clublog_password'); ?></label>
 | 										<label><?php echo lang('account_clublog_password'); ?></label>
 | ||||||
|  | 										<div class="input-group"> | ||||||
| 											<input class="form-control" type="password" name="user_clublog_password" /> | 											<input class="form-control" type="password" name="user_clublog_password" /> | ||||||
|  | 											<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span> | ||||||
|  | 										</div> | ||||||
| 										<?php if(isset($clublogpassword_error)) { echo "<small class=\"error\">".$clublogpassword_error."</small>"; } else { ?>
 | 										<?php if(isset($clublogpassword_error)) { echo "<small class=\"error\">".$clublogpassword_error."</small>"; } else { ?>
 | ||||||
| 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | 										<small class="form-text text-muted"><?php echo lang('account_leave_blank_to_keep_existing_password'); ?></small>
 | ||||||
| 										<?php } ?>
 | 										<?php } ?>
 | ||||||
|  |  | ||||||
|  | @ -745,16 +745,6 @@ table.dataTable tfoot td { | ||||||
| 	overflow-x: unset; | 	overflow-x: unset; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* Header zone (accordion) */ | .btn-pwd-showhide, .btn-pwd-showhide:hover { | ||||||
| .user_edit .accordion-button { | 	border: 1px solid var(--cl-border-btn-pwd); | ||||||
| 	border-top: 5px solid var(--cl-bg); |  | ||||||
| 	background-color: rgba(var(--bs-body-color-rgb), 0.03); |  | ||||||
| } |  | ||||||
| .user_edit .accordion-button:not(.collapsed) { |  | ||||||
| 	background-color: rgba(var(--bs-body-color-rgb), 0.05); |  | ||||||
| 	color: var(--bs-card-cap-color); |  | ||||||
| } |  | ||||||
| .user_edit .accordion-body { |  | ||||||
| 	background-color: var(--cl-bg); |  | ||||||
| 	border: 1px solid var(--bs-accordion-bg); |  | ||||||
| } | } | ||||||
|  | @ -574,11 +574,13 @@ function qso_set_eqsl_qslmsg(station_id, force_diff_to_origin=false, object='') | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // [HELP ICON] function show/hide //
 | // [PWD] button show/hide //
 | ||||||
| function help_tooltip() { | function btn_pwd_showhide() { | ||||||
| 	if ($(this).closest('div').find('div.small.text-muted').is(":hidden")) { | 	if ($(this).closest('div').find('input[type="password"]').length>0) { | ||||||
|         $(this).closest('div').find('div.small.text-muted').show(); |         $(this).closest('div').find('input[type="password"]').attr('type','text'); | ||||||
|  |         $(this).closest('div').find('.fa-eye-slash').removeClass('fa-eye-slash').addClass('fa-eye'); | ||||||
| 	} else { | 	} else { | ||||||
|         $(this).closest('div').find('div.small.text-muted').hide(); //fadeOut(4000);
 |         $(this).closest('div').find('input[type="text"]').attr('type','password'); | ||||||
|  |         $(this).closest('div').find('.fa-eye').removeClass('Òfa-eye').addClass('fa-eye-slash'); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
		正在加载…
	
		在新工单中引用