ajouts supp. previous_op

- Le trigramme est obtenu à partir de ``account_data`` qui contient les
  données traitées et validées relatives au compte en train de commander.
- L'opération précédente disparaît en cas de ``hard reset``
This commit is contained in:
Aurélien Delobelle 2017-01-07 02:28:19 +01:00
parent 7ed9c90726
commit a34732cc9d

View file

@ -1054,12 +1054,16 @@ $(document).ready(function() {
function updatePreviousOp() { function updatePreviousOp() {
var previousop_html = ''; var previousop_html = '';
var trigramme = triInput.val().toUpperCase(); var trigramme = account_data['trigramme'];
previousop_html += '<div class="trigramme">Trigramme : '+trigramme+'</div>'; previousop_html += '<div class="trigramme">Trigramme : '+trigramme+'</div>';
previousop_html += basketrel_container.html(); previousop_html += basketrel_container.html();
previousop_container.html(previousop_html); previousop_container.html(previousop_html);
} }
function resetPreviousOp() {
previousop_container.html('');
}
// ----- // -----
// Addcost // Addcost
// ----- // -----
@ -1228,6 +1232,7 @@ $(document).ready(function() {
coolReset(give_tri_focus); coolReset(give_tri_focus);
checkoutInput.trigger('change'); checkoutInput.trigger('change');
resetArticles(); resetArticles();
resetPreviousOp();
khistory.reset(); khistory.reset();
resetSettings(); resetSettings();
getArticles(); getArticles();