13100-Fix size image preview VC
This commit is contained in:
parent
6cbe76f02f
commit
720e8ce49c
|
@ -625,6 +625,8 @@ echo '</form>';
|
|||
echo '<span id="any_text" class="invisible">'.__('None').'</span>';
|
||||
echo '<span id="none_text" class="invisible">'.__('None').'</span>';
|
||||
echo '<span id="loading_text" class="invisible">'.__('Loading...').'</span>';
|
||||
|
||||
echo '<div id="cv-preview-img" title="'.__('Image preview').'"><center><img /></center></div>';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
@ -907,6 +909,24 @@ $('#image').on('change', function(){
|
|||
$('#image_prev').html('<img src="<?php echo $config['homeurl']; ?>/images/console/icons/'+img+'.png">');
|
||||
})
|
||||
|
||||
$('#wizard_table span#image_prev').click(function (e) {
|
||||
e.preventDefault();
|
||||
const src = $('#wizard_table span#image_prev img').attr('src');
|
||||
|
||||
$("#cv-preview-img img").attr('src', src);
|
||||
$("#cv-preview-img").dialog({
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
width: 'auto',
|
||||
clickOutside: true,
|
||||
overlay: {
|
||||
opacity: 0.5,
|
||||
background: "black"
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<style type="text/css">
|
||||
select[name='kind_relationship'] option[disabled='disabled'] {
|
||||
|
|
|
@ -13804,3 +13804,8 @@ button.disabled {
|
|||
margin-top: 10px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
#wizard_table span#image_prev img {
|
||||
height: 48px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue