got admin index incl. et2_tree and et2_date_ro working

This commit is contained in:
Ralf Becker
2021-06-10 13:53:07 +02:00
parent 5298336886
commit c51275fde3
8 changed files with 27 additions and 20 deletions

View File

@ -249,7 +249,7 @@ export function date (format, timestamp) {
return jsdate.getTime() / 1000 | 0;
}
};
this.date = function (format, timestamp) {
window.date = function (format, timestamp) {
that = this;
jsdate = ((typeof timestamp === 'undefined' ||isNaN(timestamp.valueOf())) ? new Date() : // Not provided
(timestamp instanceof Date) ? new Date(timestamp) : // JS Date()
@ -257,5 +257,5 @@ export function date (format, timestamp) {
);
return format.replace(formatChr, formatChrCb);
};
return this.date(format, timestamp);
return window.date(format, timestamp);
}