From 61b2963c989ffb071b4c31dce91c0acfa7bf380f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 28 Apr 2016 18:58:18 +0200 Subject: [PATCH] Optimisation on ne recharge pas les contacts tout le temps (plus long) --- view/input.php | 1 - view/js/input-min.js | 2 +- view/js/input.js | 23 ++++++++++++++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/view/input.php b/view/input.php index c7c0970..66e5662 100755 --- a/view/input.php +++ b/view/input.php @@ -76,7 +76,6 @@
-

Ajouter un contact

diff --git a/view/js/input-min.js b/view/js/input-min.js index f3c4735..a3b27e8 100644 --- a/view/js/input-min.js +++ b/view/js/input-min.js @@ -1,6 +1,6 @@ var clearAllButton=$("#clear-all"),importCallLog=$('input#call_log-import[type="file"]'),subjectManager,contactManager,miniManager,ficheManager; function dynamicUpdate(a){var c=a instanceof Element,b=c&&"SPAN"==a.tagName&&"switch-left"==a.className,d=c&&"SPAN"==a.tagName&&"switch-both"==a.className,e=c&&"INPUT"==a.tagName&&"submit"==a.type,c=c&&"SPAN"==a.tagName&&("nav-mini"==a.parentNode.id||"nav-fiche"==a.parentNode.id);if(!(d||b||e||c)&&!0!==a)return!1;d?(console.log("> switch firstname <-> lastname"),b=a.parentNode,a=b.children[3],b=b.children[5],d=a.value,a.value=b.value,b.value=d):b?(console.log("> switch firstname+lastname -> username"), -b=a.parentNode,d=b.children[1],a=b.children[3],b=b.children[5],d.value=a.value+" "+b.value,a.value="",b.value=""):(console.log("> dynamic update"),miniManager.fieldsToStorage(),ficheManager.fieldsToStorage(),contactManager.fieldsToStorage(),miniManager.sync(),ficheManager.sync(),miniManager.storageToFields(),ficheManager.storageToFields())}function checkRadioValue(a){for(var c=0,b=0;b dynamic update"),miniManager.fieldsToStorage(),ficheManager.fieldsToStorage(),contactManager.fieldsToStorage(),miniManager.sync(),ficheManager.sync(),miniManager.storageToFields(),ficheManager.storageToFields(),e&&contactManager.storageToFields())}function checkRadioValue(a){for(var c=0,b=0;b