Plugin Directory

Changeset 1359696


Ignore:
Timestamp:
02/27/2016 04:23:06 PM (10 years ago)
Author:
caalami
Message:

tag v1.2

Location:
acf-link-picker-field
Files:
4 edited
17 copied

Legend:

Unmodified
Added
Removed
  • acf-link-picker-field/tags/1.2/acf-link_picker.php

    r1331231 r1359696  
    55Plugin URI: https://github.com/ahebrank/ACF-Link-Picker-Field
    66Description: Adds an Advanced Custom Field field that allows the selection of a link utilising the WordPress link picker modal dialog
    7 Version: 1.1.2
     7Version: 1.2
    88Authors: Steve Marks (BIOSTALL), Andy Hebrank (caalami)
    99Author URI: http://biostall.com
  • acf-link-picker-field/tags/1.2/js/input.js

    r1248069 r1359696  
    3737                wpLink.setDefaultValues = function () {
    3838                    // set the current title and URL
    39                     var $text_inputs = $('#wp-link').find('input[type=text]');
    40                     $($text_inputs[1]).val(current_title);
    41                     $($text_inputs[0]).val(current_url);
     39                    $('#wp-link-text').val(current_title);
     40                    $('#wp-link-url').val(current_url);
    4241
    4342                    // target a blank page?
    44                     var $checkbox_inputs = $('#wp-link').find('input[type=checkbox]');
    45                     $checkbox_inputs.first().prop('checked', (current_target === '_blank'));
     43                    $('#wp-link-target').prop('checked', (current_target === '_blank'));
    4644                };
    4745                wpLink.open(thisID); // open the link popup
     
    152150            }
    153151        });
     152
     153        // put the link title in the title box
     154        $('body').on('click', '#search-panel .query-results li', function(event)
     155        {
     156            if (doingLink !== '')
     157            {
     158                $('#wp-link-text').val($(this).find('.item-title').text());
     159            }
     160        });
    154161    }
    155162 
  • acf-link-picker-field/tags/1.2/readme.txt

    r1331231 r1359696  
    5858== Changelog ==
    5959
     60= 1.2 =
     61* Automatically update the link title when clicking on a link.  This functionality differs from the WYSIWYG link picker (which assumes highlighted text) but should be consistent with expected behavior of an ACF field.
     62
    6063= 1.1.2 =
    6164* Added NL translation support from [vjanssens](https://github.com/vjanssens)
  • acf-link-picker-field/trunk/acf-link_picker.php

    r1331231 r1359696  
    55Plugin URI: https://github.com/ahebrank/ACF-Link-Picker-Field
    66Description: Adds an Advanced Custom Field field that allows the selection of a link utilising the WordPress link picker modal dialog
    7 Version: 1.1.2
     7Version: 1.2
    88Authors: Steve Marks (BIOSTALL), Andy Hebrank (caalami)
    99Author URI: http://biostall.com
  • acf-link-picker-field/trunk/js/input.js

    r1248069 r1359696  
    3737                wpLink.setDefaultValues = function () {
    3838                    // set the current title and URL
    39                     var $text_inputs = $('#wp-link').find('input[type=text]');
    40                     $($text_inputs[1]).val(current_title);
    41                     $($text_inputs[0]).val(current_url);
     39                    $('#wp-link-text').val(current_title);
     40                    $('#wp-link-url').val(current_url);
    4241
    4342                    // target a blank page?
    44                     var $checkbox_inputs = $('#wp-link').find('input[type=checkbox]');
    45                     $checkbox_inputs.first().prop('checked', (current_target === '_blank'));
     43                    $('#wp-link-target').prop('checked', (current_target === '_blank'));
    4644                };
    4745                wpLink.open(thisID); // open the link popup
     
    152150            }
    153151        });
     152
     153        // put the link title in the title box
     154        $('body').on('click', '#search-panel .query-results li', function(event)
     155        {
     156            if (doingLink !== '')
     157            {
     158                $('#wp-link-text').val($(this).find('.item-title').text());
     159            }
     160        });
    154161    }
    155162 
  • acf-link-picker-field/trunk/readme.txt

    r1331231 r1359696  
    5858== Changelog ==
    5959
     60= 1.2 =
     61* Automatically update the link title when clicking on a link.  This functionality differs from the WYSIWYG link picker (which assumes highlighted text) but should be consistent with expected behavior of an ACF field.
     62
    6063= 1.1.2 =
    6164* Added NL translation support from [vjanssens](https://github.com/vjanssens)
Note: See TracChangeset for help on using the changeset viewer.