calendar/base/content/dialogs/calendar-occurrence-prompt.xhtml
author Toby Pilling <toby@thunderbird.net>
Fri, 11 Jul 2025 18:02:21 +0000 (2 days ago)
changeset 45473 1ce6ab12ad1f82797deffc4bf48fd4bb8cd66015
parent 43784 7a94400ed8f1f60282283a0b32b15c64d34291af
permissions -rw-r--r--
Bug 1970615 - Register IMAP protocol early to avoid session restore issues. r=darktrojan,kaie When we got rid of IMAP JS, that removed a call to the ModuleLoader which previously checked a pref to either register the JS version or the C++ version. We still need that early registration to avoid session restore situations like a PDF that was previously open in a tab. Maybe we should have kept that... https://phabricator.services.mozilla.com/D237996#inline-1318902 Ah well, this should do it. Differential Revision: https://phabricator.services.mozilla.com/D257039
<?xml version="1.0" encoding="UTF-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE html SYSTEM "chrome://calendar/locale/calendar-occurrence-prompt.dtd">
<html
  id="calendar-occurrence-prompt"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  lightweightthemes="true"
  scrolling="false"
>
  <head>
    <title><!-- windowtitle.${itemType}.${action} --></title>
    <meta
      http-equiv="Content-Security-Policy"
      content="default-src chrome:; script-src chrome: 'unsafe-inline'"
    />
    <link rel="stylesheet" href="chrome://messenger/skin/messenger.css" />
    <link rel="stylesheet" href="chrome://messenger/skin/colors.css" />
    <link rel="stylesheet" href="chrome://messenger/skin/themeableDialog.css" />
    <link rel="stylesheet" href="chrome://calendar/skin/shared/calendar-occurrence-prompt.css" />
    <link rel="localization" href="calendar/calendar.ftl" />
    <link rel="localization" href="calendar/calendar-occurrence-prompt.ftl" />
    <script defer="defer" src="chrome://messenger/content/dialogShadowDom.js"></script>
    <script defer="defer" src="chrome://calendar/content/calendar-occurrence-prompt.js"></script>
  </head>
  <html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    <dialog buttons="accept,cancel">
      <vbox id="occurrence-prompt-header" pack="center">
        <label id="title-label" crop="end" />
        <label id="isrepeating-label" />
      </vbox>

      <vbox id="accept-buttons-box" flex="1" pack="center">
        <button
          id="accept-occurrence-button"
          default="true"
          dlgtype="accept"
          class="occurrence-accept-buttons"
          accesskey="&buttons.occurrence.accesskey;"
          oncommand="exitOccurrenceDialog(1)"
          pack="start"
        />
        <!-- XXXphilipp Button is hidden until all following is implemented -->
        <button
          id="accept-allfollowing-button"
          class="occurrence-accept-buttons"
          accesskey="&buttons.allfollowing.accesskey;"
          oncommand="exitOccurrenceDialog(2)"
          hidden="true"
          pack="start"
        />
        <button
          id="accept-parent-button"
          class="occurrence-accept-buttons"
          accesskey="&buttons.parent.accesskey;"
          oncommand="exitOccurrenceDialog(3)"
          pack="start"
        />
      </vbox>
    </dialog>
  </html:body>
</html>