diff --git a/VERSIONS_HOTLINE/58587 b/VERSIONS_HOTLINE/58587 new file mode 100644 index 0000000000000000000000000000000000000000..3b0cac230c38e7c6af2d7ff7d39399c57c681752 --- /dev/null +++ b/VERSIONS_HOTLINE/58587 @@ -0,0 +1 @@ + - ticket #58587 : Administration : Correction de la détection de modification des formulaires \ 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 6320acf95c916c6bdb05a0eae2b4e05e30307d76..64ec9f5e4ae7cbac166474d716d9c6435a9196bd 100644 --- a/public/opac/js/input_connect_list/input_connect_list.js +++ b/public/opac/js/input_connect_list/input_connect_list.js @@ -45,17 +45,18 @@ }); input.val( values.join(';') ); - var labels = []; - $(lists[0]).find('li').each(function() { - labels.push($(this).text()); - }); + var labels = []; + $(lists[0]).find('li').each(function() { + labels.push($(this).text()); + }); - widget.find('.show_drag_and_drop').text(labels.join(', ')); + widget.find('.show_drag_and_drop').text(labels.join(', ')); + widget.find('input').change(); }, remove: function(event, ui) { if("true" == options.sticky_available) - $(lists[1]).html(fixed_available); + $(lists[1]).html(fixed_available); } }); }; @@ -77,14 +78,14 @@ lists.sortable({ connectWith: 'ul', update: function() { - var _values = ""; - var _labels = ""; - widget.find('.selected_items li').each(function() { - _values += $(this).data("id") + ";"; - _labels += $(this).data("label") + ","; - }); - widget.find('input').val(_values); - widget.find('.show_drag_and_drop').text(_labels); + var _values = ""; + var _labels = ""; + widget.find('.selected_items li').each(function() { + _values += $(this).data("id") + ";"; + _labels += $(this).data("label") + ","; + }); + widget.find('input').val(_values); + widget.find('.show_drag_and_drop').text(_labels); widget.find('input').change(); } }); diff --git a/public/opac/js/tag_selection/tag_selection.js b/public/opac/js/tag_selection/tag_selection.js index 7f6fd8d16e3ec88954f70e72d501dafc92611894..c09ddd436ba80c8d021dca2789aebf5f26d6c2f0 100644 --- a/public/opac/js/tag_selection/tag_selection.js +++ b/public/opac/js/tag_selection/tag_selection.js @@ -1,11 +1,26 @@ -//OPAC3 : Tags de sélection avec criteres qui s'ouvrent dans un bloc caché d'origine +/** + * Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved. + * + * BOKEH is free software; you can redistribute it and/or modify + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by + * the Free Software Foundation. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * BOKEH is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE + * along with BOKEH; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ -//---------------------------------------------------------- -// Ouvrir / fermer le bloc de saisie et permuter le picto -//---------------------------------------------------------- function ouvrirFermer(oImg,sId) { - sImg=oImg.src; + sImg = oImg.src; if(sImg.indexOf("ouvrir") > 0 ) { oImg.src=sImg.replace("ouvrir", "fermer"); @@ -18,9 +33,7 @@ function ouvrirFermer(oImg,sId) } } -//---------------------------------------------------------- -// Recup. de valeurs des caces a cocher -//---------------------------------------------------------- + function getCoches(sIdChamp,allSelectedAsNothingSelected) { // Handles @@ -58,9 +71,7 @@ function getCoches(sIdChamp,allSelectedAsNothingSelected) setFlagMaj(true); } -//---------------------------------------------------------- -// Tout cocher ou decocher -//---------------------------------------------------------- + function selectAll(sIdChamp,bMode,allSelectedAsNothingSelected) { // Handles @@ -85,11 +96,10 @@ function selectAll(sIdChamp,bMode,allSelectedAsNothingSelected) else getCoches(sIdChamp,allSelectedAsNothingSelected); setFlagMaj(true); + $('#'+sIdChamp).change(); } -//---------------------------------------------------------- -// Lancer recherche ajax -//---------------------------------------------------------- + function getSuggest(sRubrique,sChamp,sValeur,nMinCars) { if(sValeur.length < nMinCars) @@ -106,9 +116,7 @@ function getSuggest(sRubrique,sChamp,sValeur,nMinCars) $('#'+sChamp+'_liste').load(sUrl); } -//---------------------------------------------------------- -// Champs suggestion selection d'un item -//---------------------------------------------------------- + function selectSuggest(sIdChamp, oItem) { // Handles @@ -148,9 +156,7 @@ function selectSuggest(sIdChamp, oItem) setFlagMaj(true); } -//---------------------------------------------------------- -// Champs suggestion effacer toute la selection -//---------------------------------------------------------- + function suggestClear(sIdChamp) { oChampCodes=getId(sIdChamp);