Projet

Général

Profil

0001-phoncalls-show-help-text-if-popup-are-blocked-48575.patch

Benjamin Dauvergne, 16 novembre 2020 14:58

Télécharger (1,49 ko)

Voir les différences:

Subject: [PATCH] phoncalls: show help text if popup are blocked (#48575)

 .../templates/phonecalls/start_call_newtab.html          | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
passerelle/apps/phonecalls/templates/phonecalls/start_call_newtab.html
4 4
    <meta charset="utf-8"/>
5 5
    <script type="text/javascript">
6 6
        function open_tab() {
7
            window.open("{{ redirect_url|escapejs }}");
7
            var open_result = window.open("{{ redirect_url|escapejs }}");
8
            if (open_result == null) {
9
                document.getElementById('message').style.display = "block";
10
            }
8 11
        }
9 12
    </script>
10 13
  </head>
11 14
  <body onload="open_tab()">
15
    <div id="message" style="display: none">
16
      <p>{% blocktrans %}If you see this message, it means your browser's popup blocker is active. Please deactivate it. In the meantin you can click on continue{% endblocktrans %}</p>
17
      <p style="align-text: center"><button onclick="open_tab()">{% trans "Continue" %}</a></p>
18
    </div>
12 19
  </body>
13 20
</html>
14 21

  
15
-