From be0c2f85b4ad1e5d5af77954294c87ee03e96e65 Mon Sep 17 00:00:00 2001 From: rozklad Date: Mon, 10 May 2021 20:11:43 +0200 Subject: [PATCH] fix: make json decode properly on loading #13 --- acf-mapmore.php | 2 +- assets/js/input.js | 2 +- fields/acf-mapmore-v5.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acf-mapmore.php b/acf-mapmore.php index 1e043ae..f1bbc7f 100755 --- a/acf-mapmore.php +++ b/acf-mapmore.php @@ -4,7 +4,7 @@ Plugin Name: Advanced Custom Fields: MapMore Plugin URI: https://bitterend.io Description: Map complex field for Advanced Custom Fields -Version: 1.0.1 +Version: 1.1.0 Author: bitterend Author URI: https://bitterend.io License: GPLv2 or later diff --git a/assets/js/input.js b/assets/js/input.js index f3f34f0..e5a08e3 100755 --- a/assets/js/input.js +++ b/assets/js/input.js @@ -120,7 +120,7 @@ // Avoid MapMore.prototype conflicts $.extend( MapMore.prototype, { init: function() { - + this.map = this.settings.map; this.mapDiv = this.map.getDiv(); this.locations = this.settings.locations; diff --git a/fields/acf-mapmore-v5.php b/fields/acf-mapmore-v5.php index de481e9..fa6d0c1 100755 --- a/fields/acf-mapmore-v5.php +++ b/fields/acf-mapmore-v5.php @@ -195,7 +195,7 @@ function render_field( $field ) { - locations = JSON.parse(); + locations = JSON.parse(JSON.parse());