add option to disable thumb animation
This commit is contained in:
parent
660636c0e2
commit
ff4b0e6309
|
@ -2748,6 +2748,19 @@ our @options = (
|
|||
requires => [ { name => 'ZM_WEB_LIST_THUMBS', value => 'yes' } ],
|
||||
category => 'web',
|
||||
},
|
||||
{
|
||||
name => 'ZM_WEB_ANIMATE_THUMBS',
|
||||
default => 'yes',
|
||||
description => 'Enlarge and show the live stream when a thumbnail is hovered over',
|
||||
help => q`
|
||||
Enabling this option causes the static thumbnail, shown on certain
|
||||
views, to enlarge and show the live stream, when the thumbnail is
|
||||
hovered over by the mouse.
|
||||
`,
|
||||
type => $types{boolean},
|
||||
requires => [ { name => 'ZM_WEB_LIST_THUMBS', value => 'yes' } ],
|
||||
category => 'web',
|
||||
},
|
||||
{
|
||||
name => 'ZM_WEB_USE_OBJECT_TAGS',
|
||||
default => 'yes',
|
||||
|
|
|
@ -204,7 +204,7 @@ function initPage() {
|
|||
} );
|
||||
|
||||
// Setup the thumbnail video animation
|
||||
initThumbAnimation();
|
||||
if ( WEB_ANIMATE_THUMBS ) initThumbAnimation();
|
||||
|
||||
$j('.functionLnk').click(manageFunctionModal);
|
||||
} // end function initPage
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
var consoleRefreshTimeout = <?php echo 1000*ZM_WEB_REFRESH_MAIN ?>;
|
||||
var WEB_ANIMATE_THUMBS = <?php echo ZM_WEB_ANIMATE_THUMBS?'true':'false' ?>;
|
||||
|
||||
<?php
|
||||
if ( canEdit('System') && ZM_DYN_SHOW_DONATE_REMINDER ) {
|
||||
|
|
|
@ -195,7 +195,7 @@ function initPage() {
|
|||
backBtn.prop('disabled', !document.referrer.length);
|
||||
|
||||
// Setup the thumbnail video animation
|
||||
initThumbAnimation();
|
||||
if ( WEB_ANIMATE_THUMBS ) initThumbAnimation();
|
||||
|
||||
// Some toolbar events break the thumbnail animation, so re-init eventlistener
|
||||
table.on('all.bs.table', initThumbAnimation);
|
||||
|
|
|
@ -12,3 +12,4 @@ var emailedString = "<?php echo translate('Emailed') ?>";
|
|||
var yesString = "<?php echo translate('Yes') ?>";
|
||||
var noString = "<?php echo translate('No') ?>";
|
||||
var WEB_LIST_THUMBS = <?php echo ZM_WEB_LIST_THUMBS?'true':'false' ?>;
|
||||
var WEB_ANIMATE_THUMBS = <?php echo ZM_WEB_ANIMATE_THUMBS?'true':'false' ?>;
|
||||
|
|
|
@ -82,7 +82,7 @@ function initPage() {
|
|||
backBtn.prop('disabled', !document.referrer.length);
|
||||
|
||||
// Setup the thumbnail animation
|
||||
initThumbAnimation();
|
||||
if ( WEB_ANIMATE_THUMBS ) initThumbAnimation();
|
||||
|
||||
// Some toolbar events break the thumbnail animation, so re-init eventlistener
|
||||
table.on('all.bs.table', initThumbAnimation);
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
var eid = <?php echo validInt($_REQUEST['eid']) ?>;
|
||||
var WEB_LIST_THUMBS = <?php echo ZM_WEB_LIST_THUMBS?'true':'false' ?>;
|
||||
var WEB_ANIMATE_THUMBS = <?php echo ZM_WEB_ANIMATE_THUMBS?'true':'false' ?>;
|
||||
|
|
Loading…
Reference in New Issue