dummy History test class

This commit is contained in:
Ludovic Stephan 2017-03-10 22:09:02 -03:00
parent 8eae3cee7f
commit 741bac880b

View file

@ -1,3 +1,22 @@
class History {
constructor() {
this.templates = {
'operation': '<div class="ope"><span class="amount"></span><span class="infos1"></span><span class="infos2"></span><span class="addcost"></span><span class="canceled"></span></div>',
'opegroup': '<div class="opegroup"><span class="time"></span><span class="trigramme"></span><span class="amount"></span><span class="valid_by"></span><span class="comment"></span></div>',
'day': '<div class="day"><span class="date"></span></div>',
};
this._$container = $('#history');
this.list = new OperationList();
this.api_options = {
'from': moment().subtract(3, 'days').format('YYYY-MM-DD HH:mm:ss'),
};
}
}
function KHistory(options={}) {
$.extend(this, KHistory.default_options, options);