From 356f9ba799c1cb92b78546da5e9cc3a97dd361fb Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Fri, 23 Feb 2018 16:59:42 +0100
Subject: [PATCH] no need for jquery-cookie, form state is not saved

---
 resources/Makefile.am                | 1 -
 resources/jquery-cookie-1.4.1.min.js | 2 --
 templates/web/en/index.tt2.html      | 1 -
 templates/web/en/select_sp.tt2.html  | 1 -
 templates/web/fr/index.tt2.html      | 1 -
 templates/web/fr/select_sp.tt2.html  | 1 -
 6 files changed, 7 deletions(-)
 delete mode 100644 resources/jquery-cookie-1.4.1.min.js

diff --git a/resources/Makefile.am b/resources/Makefile.am
index b951580..19720ae 100644
--- a/resources/Makefile.am
+++ b/resources/Makefile.am
@@ -16,7 +16,6 @@ nobase_www_DATA = \
 	images/geant_logo_rgb_300dpi.jpg \
 	account-manager.js \
 	jquery-3.3.1.min.js \
-	jquery-cookie-1.4.1.min.js \
 	jquery-steps-1.1.0.min.js \
 	jquery-ui-1.12.1/images/ui-icons_444444_256x240.png \
 	jquery-ui-1.12.1/images/ui-icons_555555_256x240.png \
diff --git a/resources/jquery-cookie-1.4.1.min.js b/resources/jquery-cookie-1.4.1.min.js
deleted file mode 100644
index c0f19d8..0000000
--- a/resources/jquery-cookie-1.4.1.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! jquery.cookie v1.4.1 | MIT */
-!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
\ No newline at end of file
diff --git a/templates/web/en/index.tt2.html b/templates/web/en/index.tt2.html
index 885b794..165719c 100644
--- a/templates/web/en/index.tt2.html
+++ b/templates/web/en/index.tt2.html
@@ -13,7 +13,6 @@
         <link rel="stylesheet" type="text/css" href="css/style.css" />
 
         <script type="text/javascript" src="jquery-3.3.1.min.js"></script>
-        <script type="text/javascript" src="jquery-cookie-1.4.1.min.js"></script>
         <script type="text/javascript" src="jquery-steps-1.1.0.min.js"></script>
         <script type="text/javascript" src="jquery-ui-1.12.1/jquery-ui.min.js"></script>
         <script type="text/javascript" src="jquery-validation-1.17.0.min.js"></script>
diff --git a/templates/web/en/select_sp.tt2.html b/templates/web/en/select_sp.tt2.html
index 13496b6..01d41cc 100644
--- a/templates/web/en/select_sp.tt2.html
+++ b/templates/web/en/select_sp.tt2.html
@@ -9,7 +9,6 @@ jQuery(document).ready(function($){
         bodyTag: "fieldset",
         stepsOrientation: "vertical",
         transitionEffect: "slideLeft",
-        //saveState: true,
         onStepChanging: function (event, currentIndex, newIndex)
         {
 
diff --git a/templates/web/fr/index.tt2.html b/templates/web/fr/index.tt2.html
index 34af936..7f7160c 100644
--- a/templates/web/fr/index.tt2.html
+++ b/templates/web/fr/index.tt2.html
@@ -13,7 +13,6 @@
         <link rel="stylesheet" type="text/css" href="css/style.css" />
 
         <script type="text/javascript" src="jquery-3.3.1.min.js"></script>
-        <script type="text/javascript" src="jquery-cookie-1.4.1.min.js"></script>
         <script type="text/javascript" src="jquery-steps-1.1.0.min.js"></script>
         <script type="text/javascript" src="jquery-ui-1.12.1/jquery-ui.min.js"></script>
         <script type="text/javascript" src="jquery-validation-1.17.0.min.js"></script>
diff --git a/templates/web/fr/select_sp.tt2.html b/templates/web/fr/select_sp.tt2.html
index bc84f48..4b643f4 100644
--- a/templates/web/fr/select_sp.tt2.html
+++ b/templates/web/fr/select_sp.tt2.html
@@ -13,7 +13,6 @@ jQuery(document).ready(function($){
             next: "Suivant",
             previous: "Précédent",
         },
-        //saveState: true,
         onStepChanging: function (event, currentIndex, newIndex)
         {
 
-- 
GitLab