Attachments - Version 1.5.1.1

Version Description

  • Fixed JS var naming error in IE
  • Hid NextGen tab in browser
Download this release

Release Info

Developer jchristopher
Plugin Icon wp plugin Attachments
Version 1.5.1.1
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.1.1

Files changed (4) hide show
  1. attachments.php +1 -1
  2. css/attachments.css +1 -0
  3. js/attachments.js +6 -7
  4. readme.txt +5 -1
attachments.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Attachments
4
  Plugin URI: http://mondaybynoon.com/wordpress-attachments/
5
  Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
6
- Version: 1.5.1
7
  Author: Jonathan Christopher
8
  Author URI: http://mondaybynoon.com/
9
  */
3
  Plugin Name: Attachments
4
  Plugin URI: http://mondaybynoon.com/wordpress-attachments/
5
  Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
6
+ Version: 1.5.1.1
7
  Author: Jonathan Christopher
8
  Author URI: http://mondaybynoon.com/
9
  */
css/attachments.css CHANGED
@@ -73,6 +73,7 @@ p.attachments-actions { float:right; margin:6px 0 0 !important; }
73
 
74
  /* Hide WP UI elements only for Attachments */
75
  body#media-upload.attachments-media-upload #tab-type_url,
 
76
  body#media-upload.attachments-media-upload p.ml-submit,
77
  body#media-upload.attachments-media-upload p.savebutton.ml-submit,
78
  body#media-upload.attachments-media-upload div.media-item tr.url,
73
 
74
  /* Hide WP UI elements only for Attachments */
75
  body#media-upload.attachments-media-upload #tab-type_url,
76
+ body#media-upload.attachments-media-upload #tab-nextgen,
77
  body#media-upload.attachments-media-upload p.ml-submit,
78
  body#media-upload.attachments-media-upload p.savebutton.ml-submit,
79
  body#media-upload.attachments-media-upload div.media-item tr.url,
js/attachments.js CHANGED
@@ -112,13 +112,12 @@ jQuery(document).ready(function() {
112
 
113
  // we need to hijack the Attach button
114
  jQuery('td.savesend input').live('click',function(e){
115
- e.preventDefault();
116
- parent = jQuery(this).parent().parent().parent();
117
- title = parent.find('tr.post_title td.field input').val();
118
- caption = parent.find('tr.post_excerpt td.field input').val();
119
- id = str_replace( 'imgedit-response-', '', parent.find('td.imgedit-response').attr('id') );
120
- thumb = parent.parent().parent().find('img.pinkynail').attr('src');
121
- attachments_handle_attach(title,caption,id,thumb);
122
  jQuery(this).after('<span class="attachments-attached-note"> Attached</span>').parent().find('span.attachments-attached-note').delay(1000).fadeOut();
123
  return false;
124
  });
112
 
113
  // we need to hijack the Attach button
114
  jQuery('td.savesend input').live('click',function(e){
115
+ theparent = jQuery(this).parent().parent().parent();
116
+ thetitle = theparent.find('tr.post_title td.field input').val();
117
+ thecaption = theparent.find('tr.post_excerpt td.field input').val();
118
+ theid = str_replace( 'imgedit-response-', '', theparent.find('td.imgedit-response').attr('id') );
119
+ thethumb = theparent.parent().parent().find('img.pinkynail').attr('src');
120
+ attachments_handle_attach(thetitle,thecaption,theid,thethumb);
 
121
  jQuery(this).after('<span class="attachments-attached-note"> Attached</span>').parent().find('span.attachments-attached-note').delay(1000).fadeOut();
122
  return false;
123
  });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://mondaybynoon.com/donate/
4
  Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
5
  Requires at least: 2.8
6
  Tested up to: 3.0.1
7
- Stable tag: 1.5.1
8
 
9
  Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types
10
 
@@ -44,6 +44,10 @@ Attachments uses WordPress' built in Media library for uploads and storage.
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  = 1.5.1 =
48
  * Fixed thumbnail rendering issue
49
  * Fixed issue where browse modal included extraneous items after filtering or searching
4
  Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
5
  Requires at least: 2.8
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.5.1.1
8
 
9
  Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types
10
 
44
 
45
  == Changelog ==
46
 
47
+ = 1.5.1.1 =
48
+ * Fixed JS var naming error in IE
49
+ * Hid NextGen tab in browser
50
+
51
  = 1.5.1 =
52
  * Fixed thumbnail rendering issue
53
  * Fixed issue where browse modal included extraneous items after filtering or searching