diff --git a/package.json b/package.json index 77a463333a..61e736233a 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "normalize-css": "^2.1.0", "npm": "^6.0.0", "npm-modernizr": "^2.8.3", - "phraseanet-production-client": "0.34.153-d", + "phraseanet-production-client": "0.34.156-d", "requirejs": "^2.3.5", "tinymce": "^4.0.28", "underscore": "^1.8.3", diff --git a/templates/web/prod/WorkZone/Basket.html.twig b/templates/web/prod/WorkZone/Basket.html.twig index 9f9995d634..a307ba572b 100644 --- a/templates/web/prod/WorkZone/Basket.html.twig +++ b/templates/web/prod/WorkZone/Basket.html.twig @@ -111,7 +111,8 @@ - + +
@@ -150,13 +151,10 @@ basket_id: formData[0].value, date: formData[1].value }, - beforeSend: function() { - console.log(formData[0].value); - console.log(formData[1].value); - }, success: function (data) { $('.message').css('opacity',1); - $('.submit-validation').addClass('hidden'); + $('.submit-validation').addClass ('btn-not-shown'); + $('.cancel-date').addClass ('btn-not-shown'); setTimeout(function(){ $('.message').css('opacity',0); }, 2000); }, }); @@ -180,7 +178,13 @@ $(".feed-datepicker" ).datepicker( $.datepicker.regional[ 'default' ]); $(".feed-datepicker" ).change(function() { - $('.submit-validation').removeClass('hidden'); + $('.submit-validation').removeClass('btn-not-shown'); + $('.cancel-date').removeClass('btn-not-shown'); + }); + $(".cancel-date" ).click(function() { + $('.cancel-date').removeClass('btn-not-shown'); + $('.feed-datepicker').val('{{ dateExpired }}'); + setTimeout(function(){ $('.cancel-date').addClass('btn-not-shown');$('.submit-validation').addClass('btn-not-shown'); }, 1000); }) }) diff --git a/yarn.lock b/yarn.lock index 442ca700e1..b2e5a90e77 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7577,10 +7577,10 @@ phraseanet-common@^0.4.5-d: js-cookie "^2.1.0" pym.js "^1.3.1" -phraseanet-production-client@0.34.153-d: - version "0.34.153-d" - resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.34.153-d.tgz#3014c7345cad2f3f106975805e5b8db5e8db3d56" - integrity sha512-IX5oVB4MmI/PE9iDkeuuXdjfoJd4q4SdFxHuGLswyT0PWxZhIzLT7D2zNc77ULpcnX9KnvCs6wIEIn4UbKC0pQ== +phraseanet-production-client@0.34.156-d: + version "0.34.156-d" + resolved "https://registry.yarnpkg.com/phraseanet-production-client/-/phraseanet-production-client-0.34.156-d.tgz#a8a4773bf49eab663fd42b0e5bc41df039895292" + integrity sha512-bwlvQSnwB5GcCJYiQoXRUG2FAw3UYWC+q8/Bqa1/p65Wr8YZwUqVW0uzY20cctCnkUNLOxexa2wOPomjo4k9LQ== dependencies: "@mapbox/mapbox-gl-language" "^0.9.2" "@turf/turf" "^5.1.6"