mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -121,6 +121,8 @@ $template->assign(
|
||||
)
|
||||
);
|
||||
|
||||
$template->assign('delay_before_autoOpen', $conf['delay_before_auto_openning']);
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Album display |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
@@ -6,7 +6,7 @@ $(document).ready(() => {
|
||||
data: formatedData,
|
||||
autoOpen : false,
|
||||
dragAndDrop: true,
|
||||
openFolderDelay: 1010010001010101,
|
||||
openFolderDelay: delay_autoOpen,
|
||||
onCreateLi : createAlbumNode,
|
||||
onCanSelectNode: function(node) {return false}
|
||||
});
|
||||
|
||||
@@ -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'}
|
||||
|
||||
@@ -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 |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user