From b516908dc5d686577dbb42e671f7a9aee13dfe71 Mon Sep 17 00:00:00 2001 From: Malik Imelhaine Date: Thu, 5 Jul 2018 16:14:04 +0200 Subject: [PATCH] Partie II - Harmoniser Administrer et Edit Partie traitement --- webroot/js/script.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) diff --git a/webroot/js/script.js b/webroot/js/script.js index 7f0370d..0d90090 100755 --- a/webroot/js/script.js +++ b/webroot/js/script.js @@ -130,4 +130,19 @@ function changeAdminEdit() { document.getElementById('numero-inventaire-organisme').disabled=true; document.getElementById('numero-inventaire-old').disabled=true; } +} + +function changeAdminPlus() { + if (document.getElementById('nom_createur').diabled) { + document.getElementById('nom_createur').disabled=false; + document.getElementById('created').disabled=false; + document.getElementById('nom_modificateur').disabled=false; + document.getElementById('modified').disabled=false; + } + else { + document.getElementById('nom_createur').disabled=true; + document.getElementById('created').disabled=true; + document.getElementById('nom_modificateur').disabled=true; + document.getElementById('modified').disabled=true; + } } \ No newline at end of file -- libgit2 0.21.2