Plugin Directory

Changeset 2057242


Ignore:
Timestamp:
03/26/2019 03:09:44 AM (7 years ago)
Author:
harnerdesigns
Message:

0.0.7

Location:
recent-posts-markdown/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • recent-posts-markdown/trunk/package.json

    r2057206 r2057242  
    11{
    22  "name": "recent-posts-md",
    3   "version": "0.0.6",
     3  "version": "0.0.7",
    44  "description": "Wordpress Plugin To Generate Markdown of the Recent Posts for any post type.",
    55  "main": "recent-posts-md.js",
  • recent-posts-markdown/trunk/readme.txt

    r2057226 r2057242  
    5454== Changelog ==
    5555
    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.
    5958
    6059= 0.5 =
    6160* List versions from most recent at top to oldest at bottom.
    6261
    63 == Upgrade Notice ==
    6462
    65 = 1.0 =
    66 Upgrade notices describe the reason a user should upgrade.  No more than 300 characters.
    6763
    68 = 0.5 =
    69 This version fixes a security related bug.  Upgrade immediately.
    70 
  • recent-posts-markdown/trunk/recent-posts-md.js

    r2057206 r2057242  
    11jQuery(document).ready(function () {
    22    var textarea = jQuery("#markdownContent");
     3    if(textarea.length){
    34
    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            });
    1618        });
    17     });
     19    }
    1820})
  • recent-posts-markdown/trunk/recent-posts-md.php

    r2057206 r2057242  
    44Plugin URI: https://github.com/harnerdesigns/recent-posts-md/
    55description: Generate a markdown list of recent wordpress posts.
    6 Version: 0.0.6
     6Version: 0.0.7
    77Author: Harner Designs
    88Author URI: https://harnerdesigns.com
     
    2222    }
    2323
    24     public function add_css()
     24    public function add_css($hook)
    2525    {
    2626
     27            // Load only on ?page=mypluginname
     28            if($hook != 'tools_page_recentpostmd') {
     29                    return;
     30            }
     31
     32   
    2733        wp_enqueue_style("style", plugins_url("recent-posts-md.css", __FILE__));
    2834        wp_enqueue_script("js", plugins_url("recent-posts-md.js", __FILE__), "jquery");
Note: See TracChangeset for help on using the changeset viewer.