Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.4

Version Description

Fixed: Bug in add/edit calendar

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

Files changed (5) hide show
  1. ecwd.php +1 -1
  2. ecwd_admin_class.php +1 -1
  3. ecwd_class.php +1 -1
  4. js/admin/admin.js +26 -24
  5. readme.txt +10 -7
ecwd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
- * Version: 1.0.3
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
+ * Version: 1.0.4
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
ecwd_admin_class.php CHANGED
@@ -6,7 +6,7 @@
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
- protected $version = '1.0.3';
10
  protected $ecwd_page = null;
11
 
12
  private function __construct() {
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
+ protected $version = '1.0.4';
10
  protected $ecwd_page = null;
11
 
12
  private function __construct() {
ecwd_class.php CHANGED
@@ -7,7 +7,7 @@
7
 
8
  class ECWD {
9
 
10
- protected $version = '1.0.3';
11
  protected $plugin_name = 'event-calendar-wd';
12
  protected $prefix = 'ecwd';
13
  protected $old_version = '1.4.11';
7
 
8
  class ECWD {
9
 
10
+ protected $version = '1.0.4';
11
  protected $plugin_name = 'event-calendar-wd';
12
  protected $prefix = 'ecwd';
13
  protected $old_version = '1.4.11';
js/admin/admin.js CHANGED
@@ -85,34 +85,36 @@
85
  });
86
 
87
  //event validations
88
- $("#post").submit(function (e) {
89
- var dateTo = Date.parse($("#ecwd_event_date_to").val()),
90
- dateFrom = Date.parse($("#ecwd_event_date_from").val());
91
- if(dateFrom=='' || isNaN(dateFrom) || isNaN(dateTo) || dateTo==''){
92
- alert('Please set the event dates');
93
- e.preventDefault();
94
- }
95
- if(dateFrom && !dateTo){
96
- alert('Please set the end date');
97
- e.preventDefault();
98
- }
99
- if (dateTo < dateFrom) {
100
- alert('Date to must be greater or equal to Date from');
101
- e.preventDefault();
102
- }
103
- var repeat = $('input[name="ecwd_event_repeat_event"]:checked').val();
104
- var until = Date.parse($('#ecwd_event_repeat_until_input').val());
105
- if(repeat!=='no_repeat') {
106
- if (until == '' || isNaN(until)) {
107
- alert('Please set the repeat until date');
108
  e.preventDefault();
109
  }
110
- if(!isNaN(dateFrom) && !isNaN(until) && until <= dateFrom){
111
- alert('Repeat until date must be greater than Date from');
112
  e.preventDefault();
113
  }
114
- }
115
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
 
117
  //calendar validations, etc
118
  if ($("#publish").attr('value') == 'Publish') {
85
  });
86
 
87
  //event validations
88
+ if ($("#ecwd_event_meta").length > 0) {
89
+ $("#post").submit(function (e) {
90
+ var dateTo = Date.parse($("#ecwd_event_date_to").val()),
91
+ dateFrom = Date.parse($("#ecwd_event_date_from").val());
92
+ if (dateFrom == '' || isNaN(dateFrom) || isNaN(dateTo) || dateTo == '') {
93
+ alert('Please set the event dates');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  e.preventDefault();
95
  }
96
+ if (dateFrom && !dateTo) {
97
+ alert('Please set the end date');
98
  e.preventDefault();
99
  }
100
+ if (dateTo < dateFrom) {
101
+ alert('Date to must be greater or equal to Date from');
102
+ e.preventDefault();
103
+ }
104
+ var repeat = $('input[name="ecwd_event_repeat_event"]:checked').val();
105
+ var until = Date.parse($('#ecwd_event_repeat_until_input').val());
106
+ if (repeat !== 'no_repeat') {
107
+ if (until == '' || isNaN(until)) {
108
+ alert('Please set the repeat until date');
109
+ e.preventDefault();
110
+ }
111
+ if (!isNaN(dateFrom) && !isNaN(until) && until <= dateFrom) {
112
+ alert('Repeat until date must be greater than Date from');
113
+ e.preventDefault();
114
+ }
115
+ }
116
+ });
117
+ }
118
 
119
  //calendar validations, etc
120
  if ($("#publish").attr('value') == 'Publish') {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit
5
  Requires at least: 3.9
6
  Tested up to: 4.2
7
- Stable tag: 1.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -111,17 +111,20 @@ After downloading the ZIP file of the Event Calendar WD plugin,
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 1.0.3 =
115
- New: Event template
116
- New: "Show map in event page" option
117
- Changed: "Repeat until" field is required
118
 
119
  = 1.0.2 =
120
- Fixed: Minor bugs
121
 
122
  = 1.0.1 =
123
- Fixed: Bug in Week view
124
- Fixed: Permalink bug
125
 
126
  = 1.0.0 =
127
  Initial version
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit
5
  Requires at least: 3.9
6
  Tested up to: 4.2
7
+ Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
111
 
112
  == Changelog ==
113
 
114
+ = 1.0.4 =
115
+ Fixed: Bug in add/edit calendar
116
+
117
  = 1.0.3 =
118
+ New: Event template
119
+ New: "Show map in event page" option
120
+ Changed: "Repeat until" field is required
121
 
122
  = 1.0.2 =
123
+ Fixed: Minor bugs
124
 
125
  = 1.0.1 =
126
+ Fixed: Bug in Week view
127
+ Fixed: Permalink bug
128
 
129
  = 1.0.0 =
130
  Initial version