related to #1387 3 sec delay before auto openning albums

The variable is given in php files and used in js
This commit is contained in:
Matthieu Leproux
2021-05-12 15:07:10 +02:00
parent d86e7f6cd2
commit b6a6227210
4 changed files with 10 additions and 1 deletions

View File

@@ -121,6 +121,8 @@ $template->assign(
)
);
$template->assign('delay_before_autoOpen', $conf['delay_before_auto_openning']);
// +-----------------------------------------------------------------------+
// | Album display |
// +-----------------------------------------------------------------------+

View File

@@ -6,7 +6,7 @@ $(document).ready(() => {
data: formatedData,
autoOpen : false,
dragAndDrop: true,
openFolderDelay: 1010010001010101,
openFolderDelay: delay_autoOpen,
onCreateLi : createAlbumNode,
onCanSelectNode: function(node) {return false}
});

View File

@@ -12,6 +12,10 @@ var str_yes_change_parent = "{'Yes change parent anyway'|@translate}"
var str_no_change_parent = "{'No, don\'t move this album here'|@translate}"
var str_root = "{'Root'|@translate}"
var openCat = {$open_cat};
var delay_autoOpen = {$delay_before_autoOpen}
console.log(delay_autoOpen)
{/footer_script}
{combine_script id='jquery.confirm' load='footer' require='jquery' path='themes/default/js/plugins/jquery-confirm.min.js'}

View File

@@ -716,6 +716,9 @@ $conf['dashboard_check_for_updates'] = true;
// Number Weeks displayed on activity chart on the dashboard
$conf['dashboard_activity_nb_weeks'] = 4;
// Number of seconds before auto openning when dragging albums in milliseconds : 3 seconds by default
$conf['delay_before_auto_openning'] = 3*1000;
// +-----------------------------------------------------------------------+
// | Filter |
// +-----------------------------------------------------------------------+