Add JSFrame implementation for report window
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -71,16 +71,16 @@ function openReportWindow(e, postElement) {
|
||||
e.preventDefault();
|
||||
// If there's already a report window open, close it and open this one.
|
||||
if (window.top.reportWindow) {
|
||||
window.top.reportWindow.close();
|
||||
window.top.reportWindow.closeFrame();
|
||||
}
|
||||
let reportUrl = $(postElement).attr("data-report-url");
|
||||
window.reportWindow = new WinBox("New Report", {
|
||||
window.top.reportWindow = jsFrame.create({
|
||||
url: reportUrl,
|
||||
modal: true,
|
||||
onclose: function (force) {
|
||||
window.top.reportWindow = null;
|
||||
}
|
||||
width: 360,
|
||||
height: 95,
|
||||
});
|
||||
window.top.reportWindow.show();
|
||||
}
|
||||
|
||||
function onLoad(e) {
|
||||
|
||||
Reference in New Issue
Block a user