Changeset 2574460
- Timestamp:
- 07/29/2021 06:42:02 AM (3 years ago)
- 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 28 28 - @[ShinichiNishikawa](https://github.com/ShinichiNishikawa) 29 29 - @[Webnist](https://github.com/Webnist) 30 -
wp-simple-related-posts/tags/1.5.9/js/admin-post.js
r928941 r2574460 110 110 }); 111 111 }, 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 113 146 reset: function() 114 147 { … … 147 180 { 148 181 simpleRelatedPosts.init(); 149 }) 182 }) 183 184 $(window).load(function() 185 { 186 simpleRelatedPosts.block_editor_submit(); 187 simpleRelatedPosts.block_editor_submit_toggle(); 188 }) 189 150 190 })(jQuery); -
wp-simple-related-posts/tags/1.5.9/readme.txt
r2466173 r2574460 3 3 Tags: related posts,related 4 4 Requires at least: 3.8.1 5 Tested up to: 5. 66 Stable tag: 1.5. 85 Tested up to: 5. 6 Stable tag: 1.5. 7 7 8 8 Related Posts plugin. It's flexible and fast and simple. … … 33 33 - @[ShinichiN](https://profiles.wordpress.org/shinichin) 34 34 - @[Webnist](https://profiles.wordpress.org/webnist) 35 35 36 36 37 == Installation == … … 87 88 = 1.5.8 = 88 89 * 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 5 5 Description: Display Related Posts. Very Simple. 6 6 Author: digitalcube 7 Version: 1.5. 87 Version: 1.5. 8 8 Author URI: https://github.com/megumiteam/wp-simple-related-posts 9 9 Text Domain: simple-related-posts … … 11 11 12 12 13 Copyright 2018 degitalcube (email : info@digitalcube)13 Copyright 2018 degitalcube (email : info@digitalcube) 14 14 15 15 This program is free software; you can redistribute it and/or modify -
wp-simple-related-posts/trunk/README.md
r1088692 r2574460 28 28 - @[ShinichiNishikawa](https://github.com/ShinichiNishikawa) 29 29 - @[Webnist](https://github.com/Webnist) 30 -
wp-simple-related-posts/trunk/js/admin-post.js
r928941 r2574460 110 110 }); 111 111 }, 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 113 146 reset: function() 114 147 { … … 147 180 { 148 181 simpleRelatedPosts.init(); 149 }) 182 }) 183 184 $(window).load(function() 185 { 186 simpleRelatedPosts.block_editor_submit(); 187 simpleRelatedPosts.block_editor_submit_toggle(); 188 }) 189 150 190 })(jQuery); -
wp-simple-related-posts/trunk/readme.txt
r2466173 r2574460 3 3 Tags: related posts,related 4 4 Requires at least: 3.8.1 5 Tested up to: 5. 66 Stable tag: 1.5. 85 Tested up to: 5. 6 Stable tag: 1.5. 7 7 8 8 Related Posts plugin. It's flexible and fast and simple. … … 33 33 - @[ShinichiN](https://profiles.wordpress.org/shinichin) 34 34 - @[Webnist](https://profiles.wordpress.org/webnist) 35 35 36 36 37 == Installation == … … 87 88 = 1.5.8 = 88 89 * 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 5 5 Description: Display Related Posts. Very Simple. 6 6 Author: digitalcube 7 Version: 1.5. 87 Version: 1.5. 8 8 Author URI: https://github.com/megumiteam/wp-simple-related-posts 9 9 Text Domain: simple-related-posts … … 11 11 12 12 13 Copyright 2018 degitalcube (email : info@digitalcube)13 Copyright 2018 degitalcube (email : info@digitalcube) 14 14 15 15 This program is free software; you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.