1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.client.console.wicket.markup.html.link;
20
21 import org.apache.syncope.client.ui.commons.Constants;
22 import org.apache.wicket.markup.html.link.PopupSettings;
23
24 public class VeilPopupSettings extends PopupSettings {
25
26 private static final long serialVersionUID = -2727046117490858226L;
27
28 @Override
29 public String getPopupJavaScript() {
30 return "document.getElementById('" + Constants.VEIL_INDICATOR_MARKUP_ID + "').style.display = 'block';"
31 + super.getPopupJavaScript().substring(0, super.getPopupJavaScript().lastIndexOf("return false;"))
32 + "var loop = setInterval(function() { "
33 + " if(w.closed) {"
34 + " clearInterval(loop);"
35 + " window.location.reload(false);"
36 + " }"
37 + "}, 1000);"
38 + "return false;";
39 }
40 }