Plugin Directory

Changeset 2574460

Timestamp:
07/29/2021 06:42:02 AM (3 years ago)
Author:
wokamoto
Message:

[wp-simple-related-posts] update ver.5.1.9

Location:
wp-simple-related-posts
Files:
6 edited
4 copied

Legend:

Unmodified
Added
Removed
  • wp-simple-related-posts/tags/1.5.9/README.md

    r1088692 r2574460  
    2828- @[ShinichiNishikawa](https://github.com/ShinichiNishikawa)
    2929- @[Webnist](https://github.com/Webnist)
     30
  • wp-simple-related-posts/tags/1.5.9/js/admin-post.js

    r928941 r2574460  
    110110            });
    111111        },
    112        
     112
     113        block_editor_submit: function()
     114        {
     115            $('button.editor-post-publish-button').on('click', function(){
     116                $('input[name="simple_related_posts[]"]').remove();
     117                $('.sirp_relationship .relationship_right .relationship_list li').each(function(index, item) {
     118                    $('<input />').attr('type', 'hidden')
     119                    .attr('name', 'simple_related_posts[]')
     120                    .attr('value', $(item).children('a').attr('data-post_id'))
     121                    .appendTo('.metabox-base-form');
     122                });
     123            });
     124        },
     125
     126        block_editor_submit_toggle: function()
     127        {
     128            $('button.editor-post-publish-panel__toggle').on('click', function(){
     129                setTimeout(
     130                    function () {
     131                        $('button.editor-post-publish-button').on('click', function(){
     132                            $('input[name="simple_related_posts[]"]').remove();
     133                            $('.sirp_relationship .relationship_right .relationship_list li').each(function(index, item) {
     134                                $('<input />').attr('type', 'hidden')
     135                                .attr('name', 'simple_related_posts[]')
     136                                .attr('value', $(item).children('a').attr('data-post_id'))
     137                                .appendTo('.metabox-base-form');
     138                            });
     139                        });
     140                    },
     141                    "500"
     142                );
     143            });
     144        },
     145
    113146        reset: function()
    114147        {
     
    147180    {
    148181        simpleRelatedPosts.init();
    149     })
     182    })
     183
     184    $(window).load(function()
     185    {
     186        simpleRelatedPosts.block_editor_submit();
     187        simpleRelatedPosts.block_editor_submit_toggle();
     188    })
     189
    150190})(jQuery);
  • wp-simple-related-posts/tags/1.5.9/readme.txt

    r2466173 r2574460  
    33Tags:  related posts,related
    44Requires at least: 3.8.1
    5 Tested up to: 5.6
    6 Stable tag: 1.5.8
     5Tested up to: 5.
     6Stable tag: 1.5.
    77
    88Related Posts plugin. It's flexible and fast and simple.
     
    3333- @[ShinichiN](https://profiles.wordpress.org/shinichin)
    3434- @[Webnist](https://profiles.wordpress.org/webnist)
     35
    3536
    3637== Installation ==
     
    8788= 1.5.8 =
    8889* Fixed a bug that caused metadata to be deleted in Quick Edit.
     90
     91
  • wp-simple-related-posts/tags/1.5.9/simple-related-posts.php

    r2466173 r2574460  
    55Description: Display Related Posts. Very Simple.
    66Author: digitalcube
    7 Version: 1.5.8
     7Version: 1.5.
    88Author URI: https://github.com/megumiteam/wp-simple-related-posts
    99Text Domain: simple-related-posts
     
    1111
    1212
    13 Copyright 2018 degitalcube (email : info@digitalcube)
     13Copyright 2018 degitalcube (email : info@digitalcube)
    1414
    1515This program is free software; you can redistribute it and/or modify
  • wp-simple-related-posts/trunk/README.md

    r1088692 r2574460  
    2828- @[ShinichiNishikawa](https://github.com/ShinichiNishikawa)
    2929- @[Webnist](https://github.com/Webnist)
     30
  • wp-simple-related-posts/trunk/js/admin-post.js

    r928941 r2574460  
    110110            });
    111111        },
    112        
     112
     113        block_editor_submit: function()
     114        {
     115            $('button.editor-post-publish-button').on('click', function(){
     116                $('input[name="simple_related_posts[]"]').remove();
     117                $('.sirp_relationship .relationship_right .relationship_list li').each(function(index, item) {
     118                    $('<input />').attr('type', 'hidden')
     119                    .attr('name', 'simple_related_posts[]')
     120                    .attr('value', $(item).children('a').attr('data-post_id'))
     121                    .appendTo('.metabox-base-form');
     122                });
     123            });
     124        },
     125
     126        block_editor_submit_toggle: function()
     127        {
     128            $('button.editor-post-publish-panel__toggle').on('click', function(){
     129                setTimeout(
     130                    function () {
     131                        $('button.editor-post-publish-button').on('click', function(){
     132                            $('input[name="simple_related_posts[]"]').remove();
     133                            $('.sirp_relationship .relationship_right .relationship_list li').each(function(index, item) {
     134                                $('<input />').attr('type', 'hidden')
     135                                .attr('name', 'simple_related_posts[]')
     136                                .attr('value', $(item).children('a').attr('data-post_id'))
     137                                .appendTo('.metabox-base-form');
     138                            });
     139                        });
     140                    },
     141                    "500"
     142                );
     143            });
     144        },
     145
    113146        reset: function()
    114147        {
     
    147180    {
    148181        simpleRelatedPosts.init();
    149     })
     182    })
     183
     184    $(window).load(function()
     185    {
     186        simpleRelatedPosts.block_editor_submit();
     187        simpleRelatedPosts.block_editor_submit_toggle();
     188    })
     189
    150190})(jQuery);
  • wp-simple-related-posts/trunk/readme.txt

    r2466173 r2574460  
    33Tags:  related posts,related
    44Requires at least: 3.8.1
    5 Tested up to: 5.6
    6 Stable tag: 1.5.8
     5Tested up to: 5.
     6Stable tag: 1.5.
    77
    88Related Posts plugin. It's flexible and fast and simple.
     
    3333- @[ShinichiN](https://profiles.wordpress.org/shinichin)
    3434- @[Webnist](https://profiles.wordpress.org/webnist)
     35
    3536
    3637== Installation ==
     
    8788= 1.5.8 =
    8889* Fixed a bug that caused metadata to be deleted in Quick Edit.
     90
     91
  • wp-simple-related-posts/trunk/simple-related-posts.php

    r2466173 r2574460  
    55Description: Display Related Posts. Very Simple.
    66Author: digitalcube
    7 Version: 1.5.8
     7Version: 1.5.
    88Author URI: https://github.com/megumiteam/wp-simple-related-posts
    99Text Domain: simple-related-posts
     
    1111
    1212
    13 Copyright 2018 degitalcube (email : info@digitalcube)
     13Copyright 2018 degitalcube (email : info@digitalcube)
    1414
    1515This program is free software; you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.