couldCreate: function () {
// Look to see if there are sites in the sites cache. If so, restrict new for Postbooks.
- if (XM.sites.length) {
- return false;
- } else {
+ if (!XM.sites.length) {
return XM.Info.prototype.couldCreate.apply(this, arguments);
}
+ return false;
}
});
title: "_site".loc(),
model: "XM.Site",
components: [
- {kind: "Panels", name: "panels", arrangerKind: "CarouselArranger",
+ {kind: "Panels", arrangerKind: "CarouselArranger",
fit: true, components: [
{kind: "XV.Groupbox", name: "mainPanel", components: [
{kind: "onyx.GroupboxHeader", content: "_overview".loc()},