|
|
@ -767,7 +767,7 @@ $('#demande-button').click(function () { |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
var saved_form = $('#login-form').html(); |
|
|
var saved_form = $('#demande-form').html(); |
|
|
|
|
|
|
|
|
function is_locked() { |
|
|
function is_locked() { |
|
|
|
|
|
|
|
|
@ -790,9 +790,9 @@ function updateDemandes() { |
|
|
success: function(data) { |
|
|
success: function(data) { |
|
|
if(data.success) { |
|
|
if(data.success) { |
|
|
if(data.state == "open") { |
|
|
if(data.state == "open") { |
|
|
$('#login-form').html(saved_form); |
|
|
$('#demande-form').html(saved_form); |
|
|
} else { |
|
|
} else { |
|
|
$('#login-form').html('<h2>Les commandes sont fermés pour le moment mais on revient vite !</h2>'); |
|
|
$('#demande-form').html('<h2>Les commandes sont fermés pour le moment mais on revient vite !</h2>'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|