diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b76c23..4ca5566 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Solspace Calendar Changelog +## 2.0.8 - 2018-10-17 +### Fixed +- Fixed a bug where the CP Events list page would not load because of an accidental reference to Freeform. + ## 2.0.7 - 2018-10-17 ### Added - Added `timezone` parameter for `calendar.export` function, allowing users to simulate a localized timezone, more-so as a workaround for Google Calendar not correctly supporting floating timezones. diff --git a/composer.json b/composer.json index 40296de..d5faf7e 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "solspace/craft3-calendar", "description": "The most powerful event management plugin for Craft.", - "version": "2.0.7", + "version": "2.0.8", "type": "craft-plugin", "minimum-stability": "dev", "authors": [ diff --git a/src/Controllers/SettingsController.php b/src/Controllers/SettingsController.php index d8c9bdc..2a5020b 100644 --- a/src/Controllers/SettingsController.php +++ b/src/Controllers/SettingsController.php @@ -149,7 +149,7 @@ public function actionSaveSettings(): Response /** * Determines which template has to be rendered based on $template - * Adds a Freeform_SettingsModel to template variables + * Adds a Calendar_SettingsModel to template variables * * @param string $template * @param array $variables diff --git a/src/Resources/js/src/event-index.js b/src/Resources/js/src/event-index.js index d4e9f8a..360500d 100644 --- a/src/Resources/js/src/event-index.js +++ b/src/Resources/js/src/event-index.js @@ -1 +1 @@ -"use strict";Craft.EventIndex=Craft.BaseElementIndex.extend({buttonGroup:null,init:function(t,e,n){this.on("selectSource",$.proxy(this,"updateButton")),this.on("selectSite",$.proxy(this,"updateButton")),this.base(t,e,n)},getDefaultSourceKey:function(){return this.base()},updateButton:function(){if(this.$source){this.resetMenuButton();var t=this.$source,e=t.data(),n=e.id,r=e.name,a=e.handle,i=e.key,o="*"===i,s=this.getValidSources().filter(function(t){return t.id!==n}),u=$("
",{"class":"btngroup submit"}),d=this.createMenuList(s),l=void 0,c=void 0,f="btn submit";o?(l=Craft.t("freeform","New Event"),f+=" menubtn"):(l=Craft.t("freeform","New {calendar} Event",{calendar:r}),f+=" add icon",c=this.getSourceUrl(a));var h=$("",{"class":f,href:c,text:Craft.escapeHtml(l)}).appendTo(u);d.appendTo(u);var p=h;!o&&s.length>0&&(p=$("",{"class":"btn submit menubtn"}).insertBefore(d)),new Garnish.MenuBtn(p),this.buttonGroup=u,this.addButton(this.buttonGroup)}},resetMenuButton:function(){this.buttonGroup&&this.buttonGroup.remove()},createMenuList:function(t){var e=$("",{"class":"menu"}),n=$("