AJAX Thumbnail Rebuild - Version 1.09

Version Description

  • NEW: Checkboxes can be activated by clicking on text.
Download this release

Release Info

Developer junkcoder
Plugin Icon wp plugin AJAX Thumbnail Rebuild
Version 1.09
Comparing to
See all releases

Code changes from version 1.08 to 1.09

Files changed (2) hide show
  1. ajax-thumbnail-rebuild.php +12 -10
  2. readme.txt +6 -2
ajax-thumbnail-rebuild.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin URI: http://breiti.cc/wordpress/ajax-thumbnail-rebuild
4
  Author: junkcoder
5
  Author URI: http://breiti.cc
6
- Version: 1.08
7
  Description: Rebuild all thumbnails
8
- Max WP Version: 3.2.1
9
  Text Domain: ajax-thumbnail-rebuild
10
 
11
  This program is free software; you can redistribute it and/or modify
@@ -46,7 +46,7 @@ class AjaxThumbnailRebuild {
46
  }
47
 
48
  function regenerate() {
49
- jQuery("#ajax_thumbnail_rebuild").attr("disabled", true);
50
  setMessage("<p><?php _e('Reading attachments...', 'ajax-thumbnail-rebuild') ?></p>");
51
 
52
  inputs = jQuery( 'input:checked' );
@@ -57,7 +57,7 @@ class AjaxThumbnailRebuild {
57
  } );
58
  }
59
 
60
- var onlyfeatured = jQuery("#onlyfeatured").attr('checked') ? 1 : 0;
61
 
62
  jQuery.ajax({
63
  url: "<?php echo admin_url('admin-ajax.php'); ?>",
@@ -69,13 +69,13 @@ class AjaxThumbnailRebuild {
69
 
70
  if (!list) {
71
  setMessage("<?php _e('No attachments found.', 'ajax-thumbnail-rebuild')?>");
72
- jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");
73
  return;
74
  }
75
 
76
  function regenItem() {
77
  if (curr >= list.length) {
78
- jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");
79
  setMessage("<?php _e('Done.', 'ajax-thumbnail-rebuild') ?>");
80
  return;
81
  }
@@ -106,7 +106,7 @@ class AjaxThumbnailRebuild {
106
  jQuery(document).ready(function() {
107
  jQuery('#size-toggle').click(function() {
108
  jQuery("#sizeselect").find("input[type=checkbox]").each(function() {
109
- jQuery(this).attr("checked", !jQuery(this).attr("checked"));
110
  });
111
  });
112
  });
@@ -122,8 +122,8 @@ class AjaxThumbnailRebuild {
122
  foreach ( ajax_thumbnail_rebuild_get_sizes() as $s ):
123
  ?>
124
 
125
- <input type="checkbox" name="thumbnails[]" id="sizeselect" checked="checked" value="<?php echo $s['name'] ?>" />
126
  <label>
 
127
  <em><?php echo $s['name'] ?></em>
128
  &nbsp;(<?php echo $s['width'] ?>x<?php echo $s['height'] ?>
129
  <?php if ($s['crop']) _e('cropped', 'ajax-thumbnail-rebuild'); ?>)
@@ -132,8 +132,10 @@ class AjaxThumbnailRebuild {
132
  <?php endforeach;?>
133
  </div>
134
  <p>
135
- <input type="checkbox" id="onlyfeatured" name="onlyfeatured" />
136
- <label><?php _e('Only rebuild featured images', 'ajax-thumbnail-rebuild'); ?></label>
 
 
137
  </p>
138
 
139
  <p><?php _e("Note: If you've changed the dimensions of your thumbnails, existing thumbnail images will not be deleted.",
3
  Plugin URI: http://breiti.cc/wordpress/ajax-thumbnail-rebuild
4
  Author: junkcoder
5
  Author URI: http://breiti.cc
6
+ Version: 1.09
7
  Description: Rebuild all thumbnails
8
+ Max WP Version: 3.6.1
9
  Text Domain: ajax-thumbnail-rebuild
10
 
11
  This program is free software; you can redistribute it and/or modify
46
  }
47
 
48
  function regenerate() {
49
+ jQuery("#ajax_thumbnail_rebuild").prop("disabled", true);
50
  setMessage("<p><?php _e('Reading attachments...', 'ajax-thumbnail-rebuild') ?></p>");
51
 
52
  inputs = jQuery( 'input:checked' );
57
  } );
58
  }
59
 
60
+ var onlyfeatured = jQuery("#onlyfeatured").prop('checked') ? 1 : 0;
61
 
62
  jQuery.ajax({
63
  url: "<?php echo admin_url('admin-ajax.php'); ?>",
69
 
70
  if (!list) {
71
  setMessage("<?php _e('No attachments found.', 'ajax-thumbnail-rebuild')?>");
72
+ jQuery("#ajax_thumbnail_rebuild").prop("disabled", false);
73
  return;
74
  }
75
 
76
  function regenItem() {
77
  if (curr >= list.length) {
78
+ jQuery("#ajax_thumbnail_rebuild").prop("disabled", false);
79
  setMessage("<?php _e('Done.', 'ajax-thumbnail-rebuild') ?>");
80
  return;
81
  }
106
  jQuery(document).ready(function() {
107
  jQuery('#size-toggle').click(function() {
108
  jQuery("#sizeselect").find("input[type=checkbox]").each(function() {
109
+ jQuery(this).prop("checked", !jQuery(this).prop("checked"));
110
  });
111
  });
112
  });
122
  foreach ( ajax_thumbnail_rebuild_get_sizes() as $s ):
123
  ?>
124
 
 
125
  <label>
126
+ <input type="checkbox" name="thumbnails[]" id="sizeselect" checked="checked" value="<?php echo $s['name'] ?>" />
127
  <em><?php echo $s['name'] ?></em>
128
  &nbsp;(<?php echo $s['width'] ?>x<?php echo $s['height'] ?>
129
  <?php if ($s['crop']) _e('cropped', 'ajax-thumbnail-rebuild'); ?>)
132
  <?php endforeach;?>
133
  </div>
134
  <p>
135
+ <label>
136
+ <input type="checkbox" id="onlyfeatured" name="onlyfeatured" />
137
+ <?php _e('Only rebuild featured images', 'ajax-thumbnail-rebuild'); ?>
138
+ </label>
139
  </p>
140
 
141
  <p><?php _e("Note: If you've changed the dimensions of your thumbnails, existing thumbnail images will not be deleted.",
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: junkcoder
3
  Donate link: http://breiti.cc/wordpress/ajax-thumbnail-rebuild/#donate
4
  Tags: ajax, thumbnail, rebuild, regenerate, admin, image, photo
5
  Requires at least: 2.8
6
- Tested up to: 3.2.1
7
- Stable tag: 1.08
8
 
9
  AJAX Thumbnail Rebuild allows you to rebuild all thumbnails at once without script timeouts on your server.
10
 
@@ -24,6 +24,10 @@ Upload the plugin to your blog, activate it, done. You can then rebuild all thum
24
 
25
  == Changelog ==
26
 
 
 
 
 
27
  = 1.08 =
28
 
29
  * NEW: Slovak translation, provided by Branco Radenovich.
3
  Donate link: http://breiti.cc/wordpress/ajax-thumbnail-rebuild/#donate
4
  Tags: ajax, thumbnail, rebuild, regenerate, admin, image, photo
5
  Requires at least: 2.8
6
+ Tested up to: 3.6.1
7
+ Stable tag: 1.09
8
 
9
  AJAX Thumbnail Rebuild allows you to rebuild all thumbnails at once without script timeouts on your server.
10
 
24
 
25
  == Changelog ==
26
 
27
+ = 1.09 =
28
+
29
+ * NEW: Checkboxes can be activated by clicking on text.
30
+
31
  = 1.08 =
32
 
33
  * NEW: Slovak translation, provided by Branco Radenovich.