Plugin Directory

Changeset 1320062


Ignore:
Timestamp:
01/02/2016 10:15:07 PM (10 years ago)
Author:
writegnj
Message:

v 1.3 update on attachement post_parent Id

Location:
write-here/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • write-here/trunk/README.md

    r1295310 r1320062  
    14141. Better way for AJAX loading gif.
    15152. Server side validation needs to be fixed.
    16 3. Inline images uploaded by `Add Media` button need to update `post_parent` to the newly created post's ID.
     163. Inline images uploaded by `Add Media` button need to update `post_parent` to the newly created post's ID. Currently set to `0` on v 1.3
    1717
    1818###Plans
  • write-here/trunk/README.txt

    r1305864 r1320062  
    4848= 1.2 =
    4949* Added [write-here-ajax]
     50
     51= 1.3 =
     52* Attachment parent id set to 0 (unattached)
  • write-here/trunk/js/write-here.js

    r1300953 r1320062  
    11jQuery(document).ready( function($) {
     2   
     3    // Set post_parent to 0(Unattached) for all images uploaded via Add Media button.
     4    // Rather than parent them to the page contains [write-here] or [write-here-edit]
     5    jQuery('.write-here #insert-media-button').on('click', function( event ){
     6        event.preventDefault();
     7        wp.media.model.settings.post.id = 0;
     8    });
     9   
    210    /*
    311    **  Get value from TinyMCE editor
  • write-here/trunk/write-here.php

    r1300953 r1320062  
    55Description: Simple front end form for WordPress. Write Here will allow you to have registered users to write & manage articles from front end.
    66Author: writegnj
    7 Version: 1.2
     7Version: 1.3
    88Author URI: http://www.ohsikpark.com
    99Text Domain: write-here
Note: See TracChangeset for help on using the changeset viewer.