From 19a9aadab552b99fe4cb0ef1e18cf5e3b1c41de2 Mon Sep 17 00:00:00 2001 From: vee w Date: Thu, 7 Mar 2019 13:07:21 +0700 Subject: [PATCH] v1.0.1 * Fix CSS for admin form. * Fix JS for front-end. --- App/App.php | 2 +- assets/css/admin/rd-events.css | 2 +- assets/js/front/rd-events-map.js | 7 +++++++ rd-events.php | 2 +- readme.txt | 10 ++++++++-- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/App/App.php b/App/App.php index 2de8a96..f5d9f30 100644 --- a/App/App.php +++ b/App/App.php @@ -29,7 +29,7 @@ class App */ private function checkRequirement() { - $wordpress_required_version = '4.0'; + $wordpress_required_version = '4.6'; $php_required_version = '5.5'; $php_version = (defined('PHP_VERSION') ? PHP_VERSION : (function_exists('phpversion') ? phpversion() : '4')); diff --git a/assets/css/admin/rd-events.css b/assets/css/admin/rd-events.css index f061f72..bfd1885 100644 --- a/assets/css/admin/rd-events.css +++ b/assets/css/admin/rd-events.css @@ -30,7 +30,7 @@ width: 160px; } .rd-events-time-field { - width: 80px; + width: 110px; } diff --git a/assets/js/front/rd-events-map.js b/assets/js/front/rd-events-map.js index 9e98010..c8b80c4 100644 --- a/assets/js/front/rd-events-map.js +++ b/assets/js/front/rd-events-map.js @@ -15,6 +15,13 @@ function rdEventsInitMap(map_id) { var rdevents_default_location_bangkok = {lat: 13.736717, lng: 100.523186}; var rdevents_map_html = document.getElementById(map_id); var rdevents_map_zoom = 12; + + if (typeof(rdevents_map_html) === 'undefined' || rdevents_map_html === null || rdevents_map_html === '') { + // if no map showup, no more works here. + console.log('no maps here.'); + return ; + } + if ( typeof(rdevents_map_html) !== 'undefined' && typeof(rdevents_map_html.dataset) !== 'undefined' && diff --git a/rd-events.php b/rd-events.php index 29b1724..8fe682c 100644 --- a/rd-events.php +++ b/rd-events.php @@ -3,7 +3,7 @@ * Plugin Name: Rundiz Events * Plugin URI: https://rundiz.com/?p=319 * Description: Manage your events and display in the calendar or list. - * Version: 1.0 + * Version: 1.0.1 * Author: Vee Winch * Author URI: http://rundiz.com * License: MIT diff --git a/readme.txt b/readme.txt index b44b8c8..d2fc3c7 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: okvee Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9HQE4GVV4KTZE Tags: events, meeting, plans, calendar Requires at least: 4.6.0 -Tested up to: 5.0.3 -Stable tag: 1.0 +Tested up to: 5.1 +Stable tag: 1.0.1 Requires PHP: 5.5 License: MIT License URI: http://opensource.org/licenses/MIT @@ -52,6 +52,12 @@ Please ask your question in support section and add mention to @okvee. == Changelog == += 1.0.1 = +2019-03-07 + +* Fix CSS for admin form. +* Fix JS for front-end. + = 1.0 = 2019-01-23