calendar/lightning/content/lightning-migration.xul
author Clemens <clemens@gorilla-computing.de>
Mon, 12 Mar 2018 17:44:46 +0100
changeset 30466 9b22a733b765b9a50133661fdccba4e01c3d91de
parent 28272 e8b8d373ef7bfdd776338657a2d723cf0543a225
child 33346 4ae0c5713dfecf37275060a0695be6702906adfd
permissions -rw-r--r--
Bug 321434 - Location does not appear in multiday view event box. r/a=philipp MozReview-Commit-ID: 4BbeOscF0ec

<?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/. -->

<!-- The old calendar extension, if it is installed in the same profile as
   - Lightning, will break Lightning because it ships several files that
   - have the same chrome address as files that Lightning ships.  This file
   - exists so we can check for whether that extension is installed and nuke it
   - in that case.  Note that this check *cannot* be done in any file that may
   - die as a result of the conflict (including messanger-overlay-sidebar.js).
   - Nor can it depend on files which may conflict.
  -->

<!-- DTD File with all strings specific to the file -->
<!DOCTYPE overlay
[
]>

<overlay id="ltnMigrationOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    <script type="application/javascript" src="chrome://calendar/content/calendar-migration-dialog.js"/>
    <script type="application/javascript"><![CDATA[
        function checkOld() {
            var calMgr = Components.classes["@mozilla.org/calendar/manager;1"]
                                   .getService(Components.interfaces.calICalendarManager);
            var cals = calMgr.getCalendars({});
            if (!cals.length) {
                // There are no calendars, so we are running for the first time
                gDataMigrator.checkAndMigrate();
            }
        }
        window.addEventListener("load", checkOld, { capture: false, once: true });
    ]]></script>

    <deck id="calendarDisplayDeck"/>

</overlay>