Commit 20d68cbe by François C.

Hide 'informations' zone when not connected (orders helper)

parent 5277da76
Pipeline #2153 passed with stage
in 1 minute 33 seconds
...@@ -2482,6 +2482,7 @@ $(document).ready(function() { ...@@ -2482,6 +2482,7 @@ $(document).ready(function() {
if (coop_is_connected()) { if (coop_is_connected()) {
$('#new_order_form').show(); $('#new_order_form').show();
$('#existing_orders_area').show(); $('#existing_orders_area').show();
$('#common_info_area').show();
fingerprint = new Fingerprint({canvas: true}).get(); fingerprint = new Fingerprint({canvas: true}).get();
$.ajaxSetup({ headers: { "X-CSRFToken": getCookie('csrftoken') } }); $.ajaxSetup({ headers: { "X-CSRFToken": getCookie('csrftoken') } });
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<h2>Ou, continuer une commande en cours de création</h2> <h2>Ou, continuer une commande en cours de création</h2>
<div id="existing_orders"></div> <div id="existing_orders"></div>
</div> </div>
<div id="common_info_area"> <div id="common_info_area" style="display:none;">
<h2>Informations</h2> <h2>Informations</h2>
<div id="common_info_editor_container"> <div id="common_info_editor_container">
<div id="common_info_editor"></div> <div id="common_info_editor"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment