• Koff

    (@orenkolker)


    It turns out it is not possible to choose post type.

    Every time we try yo open the select box, The widget auto saves it self and refreshes.

    In order to solve this issue, we made some changes to the plugin:

    A. on line widgets.php:874
    change the class to our own class:
    from:
    $class = $args['save'] ? 'class="widget-control-save" ' : '';
    to
    $class = $args['save'] ? 'class="gfwa-widget-control-save" ' : '';

    and for handling the saving widgets.php:1166
    from:

    <script type="text/javascript">
    
                    (function(a) {
                        a('select.widget-control-save').live('change', function(){
                            wpWidgets.save( a(this).closest('div.widget'), 0, 1, 0 );
                            return false;
                        });
                    })(jQuery);
    
                </script>

    to

    <script type="text/javascript">
    
    	(function(a) {
    		a('.widgets-holder-wrap').on('change','gfwa-widget-control-save', function(){
    			wpWidgets.save( a(this).closest('div.widget'), 0, 1, 0 );
    			return false;
    		});
    	})(jQuery);
    
    </script>

    Is it possible to get merge this changes in?

    Thanks,

    Koff

    https://wordpress.org/plugins/genesis-featured-widget-amplified/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello!

    I had the same issue with the fields not updating. If I click a hundred times, I might get lucky and the field stays selected. 😛

    The above solution posted by Koff seems to solve the field update issue. However, I noticed that other fields are affected. For example, It’s no longer possible to enter the product ID when I choose Product – Include.

    Any help with this issue would be much appreciated!

    Best regards,
    Daniel

    Same thing here. Nice fix!

    Not a code fix, but as an FYI, if you tab into that field, it will let you make a selection. For some reason, it’s only when it’s clicked on that the problem arrises.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot choose post type because of autosave’ is closed to new replies.