mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-03 06:29:20 +00:00
Messages: Integrate primary attachment (image) from Contacts in message thread. Dynamically adjust thread height on window resize.
This commit is contained in:
@@ -278,12 +278,13 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
//generate resizeEnd event after window resize event finishes (used when side menu and on messages app)
|
||||
$(window).resize(function() {
|
||||
if (this.resizeTO) { clearTimeout(this.resizeTO); }
|
||||
this.resizeTO = setTimeout(function() { $(this).trigger('resizeEnd'); }, 180);
|
||||
});
|
||||
|
||||
<?php if ($_SESSION['theme']['menu_style']['text'] == 'side') { ?>
|
||||
//create resizeEnd event
|
||||
$(window).resize(function() {
|
||||
if (this.resizeTO) { clearTimeout(this.resizeTO); }
|
||||
this.resizeTO = setTimeout(function() { $(this).trigger('resizeEnd'); }, 180);
|
||||
});
|
||||
//side menu: adjust content container width after window resize
|
||||
$(window).on('resizeEnd', function() {
|
||||
$('#content_container').animate({ width: $(window).width() - $('#menu_side_container').width() }, 200);
|
||||
@@ -311,7 +312,7 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
$("[id*=recording_button]").not("[id*=recording_button_"+recording_id+"]").html("<?php echo $v_link_label_play; ?>");
|
||||
$("[id*=recording_progress_bar]").not("[id*=recording_progress_bar_"+recording_id+"]").css('display', 'none');
|
||||
|
||||
$('audio').each(function(){
|
||||
$('audio').each(function(){$('#menu_side_container').width()
|
||||
if ($(this).get(0) != recording_audio) {
|
||||
$(this).get(0).pause(); // Stop playing
|
||||
$(this).get(0).currentTime = 0; // Reset time
|
||||
|
||||
Reference in New Issue
Block a user