Changeset 2057242
- Timestamp:
- 03/26/2019 03:09:44 AM (7 years ago)
- Location:
- recent-posts-markdown/trunk
- Files:
-
- 4 edited
-
package.json (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
recent-posts-md.js (modified) (1 diff)
-
recent-posts-md.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recent-posts-markdown/trunk/package.json
r2057206 r2057242 1 1 { 2 2 "name": "recent-posts-md", 3 "version": "0.0. 6",3 "version": "0.0.7", 4 4 "description": "Wordpress Plugin To Generate Markdown of the Recent Posts for any post type.", 5 5 "main": "recent-posts-md.js", -
recent-posts-markdown/trunk/readme.txt
r2057226 r2057242 54 54 == Changelog == 55 55 56 = 1.0 = 57 * A change since the previous version. 58 * Another change. 56 = 0.6 = 57 * Fixed bug where plugin JS would run on every page. 59 58 60 59 = 0.5 = 61 60 * List versions from most recent at top to oldest at bottom. 62 61 63 == Upgrade Notice ==64 62 65 = 1.0 =66 Upgrade notices describe the reason a user should upgrade. No more than 300 characters.67 63 68 = 0.5 =69 This version fixes a security related bug. Upgrade immediately.70 -
recent-posts-markdown/trunk/recent-posts-md.js
r2057206 r2057242 1 1 jQuery(document).ready(function () { 2 2 var textarea = jQuery("#markdownContent"); 3 if(textarea.length){ 3 4 4 textarea.height(textarea[0].scrollHeight); 5 6 jQuery(textarea).focus(function () { 7 8 var $this = jQuery(this); 9 $this.select(); 10 11 // Work around Chrome's little problem 12 $this.mouseup(function () { 13 // Prevent further mouseup intervention 14 $this.unbind("mouseup"); 15 return false; 5 textarea.height(textarea[0].scrollHeight); 6 7 jQuery(textarea).focus(function () { 8 9 var $this = jQuery(this); 10 $this.select(); 11 12 // Work around Chrome's little problem 13 $this.mouseup(function () { 14 // Prevent further mouseup intervention 15 $this.unbind("mouseup"); 16 return false; 17 }); 16 18 }); 17 } );19 } 18 20 }) -
recent-posts-markdown/trunk/recent-posts-md.php
r2057206 r2057242 4 4 Plugin URI: https://github.com/harnerdesigns/recent-posts-md/ 5 5 description: Generate a markdown list of recent wordpress posts. 6 Version: 0.0. 66 Version: 0.0.7 7 7 Author: Harner Designs 8 8 Author URI: https://harnerdesigns.com … … 22 22 } 23 23 24 public function add_css( )24 public function add_css($hook) 25 25 { 26 26 27 // Load only on ?page=mypluginname 28 if($hook != 'tools_page_recentpostmd') { 29 return; 30 } 31 32 27 33 wp_enqueue_style("style", plugins_url("recent-posts-md.css", __FILE__)); 28 34 wp_enqueue_script("js", plugins_url("recent-posts-md.js", __FILE__), "jquery");
Note: See TracChangeset
for help on using the changeset viewer.