ActivationSuccessWindow.ts 661 B

12345678910111213141516171819202122232425262728293031323334
  1. import EditorEvents = require("../../editor/EditorEvents");
  2. import EditorUI = require("../EditorUI");
  3. import ModalWindow = require("../modal/ModalWindow");
  4. class ActivationSuccessWindow extends ModalWindow {
  5. constructor() {
  6. super();
  7. this.init("Product Activation Successful", "AtomicEditor/editor/ui/activationsuccess.tb.txt");
  8. }
  9. handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
  10. if (ev.type == Atomic.UI_EVENT_TYPE_CLICK) {
  11. var id = ev.target.id;
  12. if (id == "ok") {
  13. this.hide();
  14. return true;
  15. }
  16. }
  17. }
  18. }
  19. export = ActivationSuccessWindow;