forked from DGNum/gestioCOF
dummy History test class
This commit is contained in:
parent
8eae3cee7f
commit
741bac880b
1 changed files with 19 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue