Plugin Directory

Changeset 3117217


Ignore:
Timestamp:
07/12/2024 05:41:05 PM (21 months ago)
Author:
comparisonslider
Message:

version 1.0.6

Location:
comparison-slider/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • comparison-slider/trunk/classes/html.php

    r1806320 r3117217  
    678678                // Run onChange to make pre-set of required data
    679679                '. ($onChange ? $onChange. '("'. $params['value']. '", null, "'. $buttonId. '");' : ''). '
    680                 jQuery("#'. $buttonId. '").click(function(){
     680                jQuery("#'. $buttonId. '").click(function(e){
     681                    e.preventDefault();
    681682                    var button = jQuery(this);
    682                     _custom_media = true;
     683                        _custom_media = true;
    683684                    wp.media.editor.send.attachment = function(props, attachment){
     685                        wp.media.editor._attachSent = true;
    684686                        if ( _custom_media ) {
    685687                            var selectedUrl = attachment.url;
     
    693695                        };
    694696                    };
     697                    wp.media.editor.insert = function (html) {
     698                        if (_custom_media) {
     699                            if (wp.media.editor._attachSent) {
     700                                wp.media.editor._attachSent = false;
     701                                return;
     702                            }
     703                            if (html && html != "") {
     704                                var selectedUrl = $(html).attr("src");
     705                                if (selectedUrl) {
     706                                    jQuery("#'. $inputId. '").val( selectedUrl ).trigger("change");
     707                                    '. ($onChange ? $onChange. '(selectedUrl, attachment, "'. $buttonId. '");' : ''). '
     708                                }
     709                            }
     710                        }
     711                    };
    695712                    wp.media.editor.open(button);
    696713                    jQuery(".attachment-filters").val("'. $galleryType. '").trigger("change");
  • comparison-slider/trunk/config.php

    r3038779 r3117217  
    4949   
    5050    define('ICS_PLUGIN_INSTALLED', true);
    51     define('ICS_VERSION', '1.0.5');
     51    define('ICS_VERSION', '1.0.6');
    5252    define('ICS_USER', 'user');
    5353   
  • comparison-slider/trunk/ics.php

    r3038779 r3117217  
    44 * Plugin URI: https://pareslider.com/
    55 * Description: Image Comparison Slider plugin allow user to view a comparison between two images.
    6  * Version: 1.0.5
     6 * Version: 1.0.6
    77 * Author: pareslider.com
    88 * Author URI: https://pareslider.com
  • comparison-slider/trunk/readme.txt

    r3038779 r3117217  
    44Tags: slider, image, comparison, comparison slider, comparison slider plugin, image comparison, image comparison slider, product table, product filter, currency switcher, woocommerce,
    55Tested up to: 6.4
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77
    88Image Comparison Slider plugin allow user to view a comparison between two images. Interactively compare two images visually with before-after compare slider
     
    125125== Changelog ==
    126126
     127= 1.0.6 / 12.07.2024
     128 * Code optimization
     129
    127130= 1.0.5 / 19.02.2024
    128131 * Minor issues fix
Note: See TracChangeset for help on using the changeset viewer.