Setting to disable sidebar auto opening on hover

This commit is contained in:
Squidly271 2022-09-30 05:26:30 -04:00
parent e8df85e08f
commit ca3ccee25e
5 changed files with 23 additions and 12 deletions

View File

@ -693,16 +693,18 @@ $(function(){
removeApp(path,name);
});
$("body").on("mouseover",".ca_displayIcon,.infoButton,.displayIcon,.card_readmore",function() {
var icon = this;
iconHoverTimer = setTimeout(function() {
icon.click();
},3000);
});
$("body").on("mouseout",".ca_displayIcon,.infoButton,.displayIcon,.card_readmore",function() {
clearTimeout(iconHoverTimer);
});
<? if ($cfg['sidebarOpen'] == "yes"):?>
$("body").on("mouseover",".ca_displayIcon,.infoButton,.displayIcon,.card_readmore",function() {
var icon = this;
iconHoverTimer = setTimeout(function() {
icon.click();
},3000);
});
$("body").on("mouseout",".ca_displayIcon,.infoButton,.displayIcon,.card_readmore",function() {
clearTimeout(iconHoverTimer);
});
<?endif;?>
/* Everything is now initialized. This is the start of the actual "real" code */
if ( "<?=$firstRun?>" == "true" ) {
$(".ca_templatesDisplay").hide();

View File

@ -1,7 +1,7 @@
73795c70b2b193fd25115d77259d152d ./Apps.page
59496037fb6375e3f0e8ca11da999d8a ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
4c5d4598e1bafa46bd90c27cbe302122 ./ca_settings.page
e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg
141185e4e1fee9ada93112be1c3277b9 ./include/exec.php
f25b1ed0b1cddfb4ff95a10ced212a0d ./include/helpers.php
116042a918060278e77379b0dd73482c ./include/paths.php

View File

@ -82,6 +82,14 @@ function debug() {
> <?tr("This option enables another button on the cards and popups which will allow you to reinstall an installed application using it's default template values. This option can be confusing at times, and is only generally used if you wish to install and have an application running twice simultaneously");?>
<?tr("Automatically open the sidebar:");?>
: <select name='sidebarOpen' size='1'>
<?=mk_option($cfg['sidebarOpen'],'yes',tr("Yes",true))?>
<?=mk_option($cfg['sidebarOpen'],'no',tr("No",true))?>
</select>
> <?tr("Allows CA to automatically open the sidebar for more information when hovering over an application's icon");?>
<?tr("Allow CA to check for updates to applications:");?>
: <select name="updateCheck" size="1">
<?=mk_option($cfg['updateCheck'],"yes",tr("Yes",true))?>

View File

@ -6,3 +6,4 @@ debugging="no"
updateCheck="yes"
dev="no"
maxPerPage="24"
sidebarOpen="yes"