Plugin Directory

Changeset 3065068


Ignore:
Timestamp:
04/04/2024 10:18:13 PM (2 years ago)
Author:
ivanpetermann
Message:

tagging version 1.11.1

Location:
masks-form-fields
Files:
3 edited
5 copied

Legend:

Unmodified
Added
Removed
  • masks-form-fields/tags/1.11.1/includes/js/scripts.js

    r2664651 r3065068  
    1818        $('input.cep').mff_mask('00000-000');
    1919        $('input.zip').mff_mask('00000');
    20         $('input.phone').mff_mask(PhoneMaskBehavior, nonoOptions);
     20        $('input.phone, input[name="phonebr"]').mff_mask(PhoneMaskBehavior, nonoOptions);
    2121        $('input.phone_us').mff_mask('(000) 000-0000');
    2222        $('input.taxid').mff_mask('00-0000000');
  • masks-form-fields/tags/1.11.1/masks-form-fields.php

    r3064012 r3065068  
    22/*
    33 * Plugin Name: Masks Form Fields
    4  * Version: 1.10
     4 * Version: 1.11.1
    55 * Plugin URI: https://ivanpetermann.com/masks-form-fields/
    66 * Description: A plugin to add masks in the form’s fields.
     
    3939if ( ! defined( 'ABSPATH' ) ) exit;
    4040
    41 define( 'MFF_VERSION', '1.10' );
     41define( 'MFF_VERSION', '1.11.1' );
    4242define( 'MFF_PLUGIN', __FILE__ );
    4343define( 'MFF_PLUGIN_DIR', untrailingslashit( dirname( MFF_PLUGIN ) ) );
     
    7979    $_mff = ['loader' => true];
    8080
    81     wp_add_inline_script( 'masks-form-fields', 'var _mff='.json_encode($_mff), 'before' );
     81    wp_add_inline_script( 'masks-form-fields', 'var _mff='.json_encode($_mff).';', 'before' );
    8282
    8383    do_action( 'mff_enqueue_scripts' );
  • masks-form-fields/tags/1.11.1/readme.txt

    r3064028 r3065068  
    66Tested up to: 6.5
    77Requires PHP: 5.6
    8 Stable tag: 1.10
     8Stable tag: 1.11.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131('input.cep').mask('00000-000');
    3232('input.zip').mask('00000');
    33 ('input.phone').mask(PhoneMaskBehavior, nonoOptions);
     33('input.phone, input[name="phonebr"]').mask(PhoneMaskBehavior, nonoOptions);
    3434('input.phone_us').mask('(000) 000-0000');
    3535('input.taxid').mask('00-0000000');
     
    5555[Click here](https://gist.github.com/petermann/fd1a898e02ca91a0d7231a9f8ee662b4) for more details on how to add custom mask.
    5656
     57**Optional**
     58- Added option for the format of the Brazilian phone number, with attribute `name` equal to `phonebr`.
     59
    5760== Installation ==
    5861
     
    7578
    7679== Changelog ==
     80
     81= 1.11.1 =
     82* Fixed JS minification conflict: Added semicolon after JSON declaration in wp_add_inline_script. (commit#3529ce1)
     83* Added option for the format of the Brazilian phone number, with attribute 'name' equal to 'phonebr'. (commit#9c14400)
    7784
    7885= 1.10 =
  • masks-form-fields/trunk/includes/js/scripts.js

    r2664651 r3065068  
    1818        $('input.cep').mff_mask('00000-000');
    1919        $('input.zip').mff_mask('00000');
    20         $('input.phone').mff_mask(PhoneMaskBehavior, nonoOptions);
     20        $('input.phone, input[name="phonebr"]').mff_mask(PhoneMaskBehavior, nonoOptions);
    2121        $('input.phone_us').mff_mask('(000) 000-0000');
    2222        $('input.taxid').mff_mask('00-0000000');
  • masks-form-fields/trunk/masks-form-fields.php

    r3064012 r3065068  
    22/*
    33 * Plugin Name: Masks Form Fields
    4  * Version: 1.10
     4 * Version: 1.11.1
    55 * Plugin URI: https://ivanpetermann.com/masks-form-fields/
    66 * Description: A plugin to add masks in the form’s fields.
     
    3939if ( ! defined( 'ABSPATH' ) ) exit;
    4040
    41 define( 'MFF_VERSION', '1.10' );
     41define( 'MFF_VERSION', '1.11.1' );
    4242define( 'MFF_PLUGIN', __FILE__ );
    4343define( 'MFF_PLUGIN_DIR', untrailingslashit( dirname( MFF_PLUGIN ) ) );
     
    7979    $_mff = ['loader' => true];
    8080
    81     wp_add_inline_script( 'masks-form-fields', 'var _mff='.json_encode($_mff), 'before' );
     81    wp_add_inline_script( 'masks-form-fields', 'var _mff='.json_encode($_mff).';', 'before' );
    8282
    8383    do_action( 'mff_enqueue_scripts' );
  • masks-form-fields/trunk/readme.txt

    r3064028 r3065068  
    66Tested up to: 6.5
    77Requires PHP: 5.6
    8 Stable tag: 1.10
     8Stable tag: 1.11.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131('input.cep').mask('00000-000');
    3232('input.zip').mask('00000');
    33 ('input.phone').mask(PhoneMaskBehavior, nonoOptions);
     33('input.phone, input[name="phonebr"]').mask(PhoneMaskBehavior, nonoOptions);
    3434('input.phone_us').mask('(000) 000-0000');
    3535('input.taxid').mask('00-0000000');
     
    5555[Click here](https://gist.github.com/petermann/fd1a898e02ca91a0d7231a9f8ee662b4) for more details on how to add custom mask.
    5656
     57**Optional**
     58- Added option for the format of the Brazilian phone number, with attribute `name` equal to `phonebr`.
     59
    5760== Installation ==
    5861
     
    7578
    7679== Changelog ==
     80
     81= 1.11.1 =
     82* Fixed JS minification conflict: Added semicolon after JSON declaration in wp_add_inline_script. (commit#3529ce1)
     83* Added option for the format of the Brazilian phone number, with attribute 'name' equal to 'phonebr'. (commit#9c14400)
    7784
    7885= 1.10 =
Note: See TracChangeset for help on using the changeset viewer.