Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fieldmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
* Fieldmanager Base Plugin File.
*
* @package Fieldmanager
* @version 1.2.0-alpha
* @version 1.2.1
*/

/*
Plugin Name: Fieldmanager
Plugin URI: https://github.com/alleyinteractive/wordpress-fieldmanager
Description: Add fields to WordPress programatically.
Author: Alley Interactive
Version: 1.2.0-alpha
Version: 1.2.1
Author URI: https://www.alleyinteractive.com/
*/

/**
* Current version of Fieldmanager.
*/
define( 'FM_VERSION', '1.2.0-alpha' );
define( 'FM_VERSION', '1.2.1' );

/**
* Filesystem path to Fieldmanager.
Expand Down
7 changes: 4 additions & 3 deletions js/fieldmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ $( document ).ready( function () {
var src = $( this ).data( 'display-src' );
var values = getCompareValues( this );
// Wrapper divs sometimes receive .fm-element, but don't use them as
// triggers. Also don't use autocomplete inputs as triggers, because the
// value is in their sibling hidden fields (which this still matches).
var trigger = $( this ).siblings( '.fm-' + src + '-wrapper' ).find( '.fm-element' ).not( 'div, .fm-autocomplete' );
// triggers. Also don't use autocomplete inputs or a checkbox's hidden
// sibling as triggers, because the value is in their sibling fields
// (which this still matches).
var trigger = $( this ).siblings( '.fm-' + src + '-wrapper' ).find( '.fm-element' ).not( 'div, .fm-autocomplete, .fm-checkbox-hidden' );

// Sanity check before calling `val()` or `split()`.
if ( 0 === trigger.length ) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Fieldmanager",
"description": "Fieldmanager is a comprehensive toolkit for building forms, metaboxes, and custom admin screens for WordPress.",
"version": "1.2.0-alpha",
"version": "1.2.1",
"repository" : {
"type" : "git",
"url" : "https://github.com/alleyinteractive/wordpress-fieldmanager"
Expand Down
2 changes: 1 addition & 1 deletion php/class-fieldmanager-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public function __construct( $label = '', $options = array() ) {

// Only enqueue base assets once, and only when we have a field.
if ( ! self::$enqueued_base_assets ) {
fm_add_script( 'fieldmanager_script', 'js/fieldmanager.js', array( 'jquery', 'jquery-ui-sortable' ), '1.0.9' );
fm_add_script( 'fieldmanager_script', 'js/fieldmanager.js', array( 'jquery', 'jquery-ui-sortable' ), '1.2.1' );
fm_add_style( 'fieldmanager_style', 'css/fieldmanager.css', array(), '1.0.4' );
self::$enqueued_base_assets = true;
}
Expand Down