/usr/lib/thunderbird-addons/extensions/{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}/chrome/gdata-provider/content/gdata-calendar-properties.js is in xul-ext-gdata-provider 1:52.7.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /* 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/. */
(function() {
Components.utils.import("resource://gdata-provider/modules/gdataUtils.jsm");
monkeyPatch(window, "onLoad", function(protofunc) {
let rv = protofunc.apply(this, Array.slice(arguments, 1));
if (gCalendar.type == "gdata") {
let accessRole = gCalendar.getProperty("settings.accessRole");
let isReader = (accessRole == "freeBusyReader" || accessRole == "reader");
let isEventsCalendar = gCalendar.getProperty("capabilities.events.supported");
let isDisabled = gCalendar.getProperty("disabled");
// Disable setting read-only if the calendar is readonly anyway
document.getElementById("read-only").disabled = isDisabled || (isEventsCalendar && isReader);
// Don't allow setting refresh interval to 30 minutes or less
let refInterval = document.getElementById("calendar-refreshInterval-menupopup");
Array.slice(refInterval.childNodes).filter(function(n) {
let nv = parseInt(n.getAttribute("value"), 10);
return nv < 30 && nv != 0;
}).forEach(function(n) { refInterval.removeChild(n); });
// Old Lightning doesn't hide the cache label
let oldCacheLabel = document.getElementById("cache");
if (oldCacheLabel) {
oldCacheLabel.setAttribute("hidden", "true");
}
}
return rv;
});
})();
|