2020-12-10 20:14:35 +01:00
|
|
|
import { Misc } from "./misc.js";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extend the base Dialog entity by defining a custom window to perform roll.
|
|
|
|
* @extends {Dialog}
|
|
|
|
*/
|
|
|
|
export class RdDAstrologieEditeur extends Dialog {
|
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
constructor(html, calendrier, calendrierData) {
|
|
|
|
|
|
|
|
let myButtons = {
|
2020-12-11 08:29:24 +01:00
|
|
|
saveButton: { label: "Fermer", callback: html => this.fillData() }
|
2020-12-10 20:14:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// Common conf
|
|
|
|
let dialogConf = { content: html, title: "Editeur d'Astrologie", buttons: myButtons, default: "saveButton" };
|
2020-12-11 08:29:24 +01:00
|
|
|
let dialogOptions = { classes: ["rdddialog"], width: 600, height: 300, 'z-index': 99999 }
|
2020-12-10 20:14:35 +01:00
|
|
|
super(dialogConf, dialogOptions)
|
|
|
|
|
|
|
|
this.calendrier = calendrier;
|
|
|
|
this.updateData( calendrierData );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
fillData( ) {
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
updateData( calendrierData ) {
|
|
|
|
this.calendrierData = duplicate(calendrierData);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------------------------------- */
|
|
|
|
activateListeners(html) {
|
|
|
|
super.activateListeners(html);
|
|
|
|
|
|
|
|
let astrologieData = this.astrologieData;
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|