WordPress.org

Plugin Directory

Changeset 637683


Ignore:
Timestamp:
12/12/12 12:33:50 (16 months ago)
Author:
eskapism
Message:

version 1.2.1

Location:
simple-fields-map-extension
Files:
3 edited
9 copied

Legend:

Unmodified
Added
Removed
  • simple-fields-map-extension/tags/1.2.1/readme.txt

    r636534 r637683  
    55Requires at least: 3.4 
    66Tested up to: 3.4.2 
    7 Stable tag: 1.2 
     7Stable tag: 1.2.1 
    88License: GPLv2 
    99 
     
    5555== Changelog == 
    5656 
     57= 1.2.1 = 
     58- Added support for coordinates with negative latitude/longitude locations, like this one: 2.033630,-76.007050 
     59- Added version number to scripts/styles to cache bust. 
     60 
    5761= 1.2 = 
    5862- Added support for adding marker by entering its lng/lat coordinates. Valid formats are: 48.858278,2.294254 or 48.858278 2.294254 
  • simple-fields-map-extension/tags/1.2.1/scripts.js

    r636516 r637683  
    232232                        // 48.858278,2.294254 
    233233                        // 48.858278 2.294254 
    234                         // so number.dot.number pehaps comma then number.dot.number 
     234                        // so perhaps minus then number.dot.number pehaps comma then perhaps number then number.dot.number 
    235235                        var entered_address = address_input.get(0).value; 
    236                         var matches = entered_address.match(/(\d+\.\d+)[, ](\d+\.\d+)/); 
     236                        var matches = entered_address.match(/(-?\d+\.\d+)[, ](-?\d+\.\d+)/); 
    237237                        if (matches && matches.length === 3) { 
    238238                             
  • simple-fields-map-extension/tags/1.2.1/simple-fields-map-extension.php

    r636520 r637683  
    44Plugin URI: http://earthpeople.se/ 
    55Description: Adds a Google Maps-field to Simple Fields 
    6 Version: 1.2 
     6Version: 1.2.1 
    77Author: Earth People 
    88Author URI: http://earthpeople.se/ 
     
    1717        public  
    1818            $key = "googlemaps",  
    19             $name = "Google Maps location"; 
     19            $name = "Google Maps location", 
     20            $version = "1.2.1"; 
    2021         
    2122        function __construct() { 
     
    2425            // This is the funky way I do it so it works with my symlinks 
    2526            $plugin_url = plugins_url(basename(dirname(__FILE__))) . "/"; 
     27            $plugin_version = $this->version; 
    2628 
    2729            load_plugin_textdomain('simple-fields-field-googlemaps', false, basename( dirname( __FILE__ ) ) . '/languages' ); 
    2830     
    2931            // Add admin scripts that the the plugin uses 
    30             add_action("admin_enqueue_scripts", function() use ($plugin_url) { 
    31                 wp_enqueue_script( "simple-fields-googlemaps", $plugin_url . "scripts.js" ); 
    32                 wp_enqueue_style( "simple-fields-googlemaps", $plugin_url . "style.css" ); 
     32            add_action("admin_enqueue_scripts", function() use ($plugin_url, $plugin_version) { 
     33                wp_enqueue_script( "simple-fields-googlemaps", $plugin_url . "scripts.js", array(), $plugin_version ); 
     34                wp_enqueue_style( "simple-fields-googlemaps", $plugin_url . "style.css", array(), $plugin_version ); 
    3335            }); 
    3436         
  • simple-fields-map-extension/trunk/readme.txt

    r636534 r637683  
    55Requires at least: 3.4 
    66Tested up to: 3.4.2 
    7 Stable tag: 1.2 
     7Stable tag: 1.2.1 
    88License: GPLv2 
    99 
     
    5555== Changelog == 
    5656 
     57= 1.2.1 = 
     58- Added support for coordinates with negative latitude/longitude locations, like this one: 2.033630,-76.007050 
     59- Added version number to scripts/styles to cache bust. 
     60 
    5761= 1.2 = 
    5862- Added support for adding marker by entering its lng/lat coordinates. Valid formats are: 48.858278,2.294254 or 48.858278 2.294254 
  • simple-fields-map-extension/trunk/scripts.js

    r636516 r637683  
    232232                        // 48.858278,2.294254 
    233233                        // 48.858278 2.294254 
    234                         // so number.dot.number pehaps comma then number.dot.number 
     234                        // so perhaps minus then number.dot.number pehaps comma then perhaps number then number.dot.number 
    235235                        var entered_address = address_input.get(0).value; 
    236                         var matches = entered_address.match(/(\d+\.\d+)[, ](\d+\.\d+)/); 
     236                        var matches = entered_address.match(/(-?\d+\.\d+)[, ](-?\d+\.\d+)/); 
    237237                        if (matches && matches.length === 3) { 
    238238                             
  • simple-fields-map-extension/trunk/simple-fields-map-extension.php

    r636520 r637683  
    44Plugin URI: http://earthpeople.se/ 
    55Description: Adds a Google Maps-field to Simple Fields 
    6 Version: 1.2 
     6Version: 1.2.1 
    77Author: Earth People 
    88Author URI: http://earthpeople.se/ 
     
    1717        public  
    1818            $key = "googlemaps",  
    19             $name = "Google Maps location"; 
     19            $name = "Google Maps location", 
     20            $version = "1.2.1"; 
    2021         
    2122        function __construct() { 
     
    2425            // This is the funky way I do it so it works with my symlinks 
    2526            $plugin_url = plugins_url(basename(dirname(__FILE__))) . "/"; 
     27            $plugin_version = $this->version; 
    2628 
    2729            load_plugin_textdomain('simple-fields-field-googlemaps', false, basename( dirname( __FILE__ ) ) . '/languages' ); 
    2830     
    2931            // Add admin scripts that the the plugin uses 
    30             add_action("admin_enqueue_scripts", function() use ($plugin_url) { 
    31                 wp_enqueue_script( "simple-fields-googlemaps", $plugin_url . "scripts.js" ); 
    32                 wp_enqueue_style( "simple-fields-googlemaps", $plugin_url . "style.css" ); 
     32            add_action("admin_enqueue_scripts", function() use ($plugin_url, $plugin_version) { 
     33                wp_enqueue_script( "simple-fields-googlemaps", $plugin_url . "scripts.js", array(), $plugin_version ); 
     34                wp_enqueue_style( "simple-fields-googlemaps", $plugin_url . "style.css", array(), $plugin_version ); 
    3335            }); 
    3436         
Note: See TracChangeset for help on using the changeset viewer.