Extend <-popup> to create floating popups that must be manually cleared (#5655)

This commit is contained in:
Saq Imtiaz
2021-05-02 10:20:39 +01:00
committed by GitHub
parent cb44cc0f2b
commit 3f98686153
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -37,6 +37,7 @@ Compute the internal state of the widget
ActionPopupWidget.prototype.execute = function() {
this.actionState = this.getAttribute("$state");
this.actionCoords = this.getAttribute("$coords");
this.floating = this.getAttribute("$floating","no") === "yes";
};
/*
@@ -68,7 +69,8 @@ ActionPopupWidget.prototype.invokeAction = function(triggeringWidget,event) {
height: parseFloat(match[4])
},
title: this.actionState,
wiki: this.wiki
wiki: this.wiki,
floating: this.floating
});
} else {
$tw.popup.cancel(0);