From c0531705571d43b95e4816b6fb688ec88639ec62 Mon Sep 17 00:00:00 2001 From: gloas <gloas@afi-sa.fr> Date: Fri, 5 May 2017 17:06:52 +0200 Subject: [PATCH] dev #59734 zendform PAGE --- public/admin/css/config_accueil.css | 9 +++++++++ public/opac/js/input_connect_list/input_connect_list.js | 8 ++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/public/admin/css/config_accueil.css b/public/admin/css/config_accueil.css index d7574102ff2..8c221d237dd 100644 --- a/public/admin/css/config_accueil.css +++ b/public/admin/css/config_accueil.css @@ -77,4 +77,13 @@ .profile_composition > div > div { margin-bottom: 1em; +} + +.profile_composition .source_list .placeholder { + display: none; +} + +.profile_composition .placeholder { + background: var(--anchor); + height: 1em; } \ No newline at end of file diff --git a/public/opac/js/input_connect_list/input_connect_list.js b/public/opac/js/input_connect_list/input_connect_list.js index 130aeb2f86d..33459eb8743 100644 --- a/public/opac/js/input_connect_list/input_connect_list.js +++ b/public/opac/js/input_connect_list/input_connect_list.js @@ -122,7 +122,8 @@ }); lists.sortable({ - connectWith: 'ul.container_list', + connectWith: 'ul', + placeholder: 'placeholder', update: function(event, ui) { var values = ""; $(event.target).closest('div').find('ul.container_list li').each(function() { @@ -131,12 +132,7 @@ $(event.target).closest('div').find('input').val(values) $(event.target).closest('form').submit(); widget.find('input').change(); - sources.html(fixed); - }, - remove: function(event, ui) { - sources.html(fixed); } - }); }; } (jQuery)); -- GitLab