WIP: Aureplop/kpsul js refactor #501
5 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
class History {
|
class KHistory {
|
||||||
|
|
||||||
constructor(api_options, display_options) {
|
constructor(api_options, display_options) {
|
||||||
this.templates = {
|
this.templates = {
|
||||||
|
|
|
@ -5,7 +5,7 @@ class KPsulManager {
|
||||||
this.account_manager = new AccountManager(this);
|
this.account_manager = new AccountManager(this);
|
||||||
this.checkout_manager = new CheckoutManager(this);
|
this.checkout_manager = new CheckoutManager(this);
|
||||||
this.article_manager = new ArticleManager(this);
|
this.article_manager = new ArticleManager(this);
|
||||||
this.history = new History();
|
this.history = new KHistory();
|
||||||
}
|
}
|
||||||
|
|
||||||
reset(soft) {
|
reset(soft) {
|
||||||
|
|
|
@ -105,7 +105,7 @@ $(document).ready(function() {
|
||||||
// Lock to avoid multiple requests
|
// Lock to avoid multiple requests
|
||||||
window.lock = 0;
|
window.lock = 0;
|
||||||
|
|
||||||
var history = new History();
|
var history = new KHistory();
|
||||||
history.api_options = {
|
history.api_options = {
|
||||||
'accounts': [{{ account.pk }}],
|
'accounts': [{{ account.pk }}],
|
||||||
};
|
};
|
||||||
|
|
|
@ -65,7 +65,7 @@ $(document).ready(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
||||||
var history = new History();
|
var history = new KHistory();
|
||||||
|
|
||||||
var $from_date = $('#from_date');
|
var $from_date = $('#from_date');
|
||||||
var $to_date = $('#to_date');
|
var $to_date = $('#to_date');
|
||||||
|
|
|
@ -54,7 +54,7 @@ $(document).ready(function() {
|
||||||
// Lock to avoid multiple requests
|
// Lock to avoid multiple requests
|
||||||
window.lock = 0;
|
window.lock = 0;
|
||||||
|
|
||||||
var history = new History();
|
var history = new KHistory();
|
||||||
history.api_options = {
|
history.api_options = {
|
||||||
'transfersonly': true,
|
'transfersonly': true,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue