wpDataTables Lite - Version 2.1.20

Version Description

  • Feature: Added clear button in color-picker in simple table.
  • Bugfix: Fixed resetting CSS rule for background and text color in simple table editor.
  • Other small bug fixes and stability improvements
Download this release

Release Info

Developer wpDataTables
Plugin Icon 128x128 wpDataTables Lite
Version 2.1.20
Comparing to
See all releases

Code changes from version 2.1.19 to 2.1.20

assets/js/wpdatatables/admin/constructor/wdt.simpleTable.js CHANGED
@@ -775,12 +775,20 @@
775
  } else {
776
  newValue = value;
777
  }
778
- newClassName = cell.className.replace(cell.className.substring(cell.className.indexOf(partClass), cell.className.indexOf(partClass) + 14), partClass + newValue);
 
 
 
 
779
  } else {
780
  if (partClass == 'wpdt-ff-' || partClass == 'wpdt-fs-') {
781
  newClassName = cell.className + ' ' + partClass + String(value).padStart(6, '0');
782
  } else {
783
- newClassName = cell.className + ' ' + partClass + value;
 
 
 
 
784
  }
785
  }
786
  wpdtEditor.setCellMeta(rowIndex, columnIndex, 'className', newClassName.trimStart());
@@ -1038,7 +1046,7 @@
1038
  hsla: false,
1039
  hsva: false,
1040
  cmyk: false,
1041
- clear: false,
1042
  input: true,
1043
  save: true
1044
  }
@@ -1061,6 +1069,9 @@
1061
  jQuery(element).css("border-bottom-color", color.toHEXA().toString(0));
1062
  selectedColor = pickr.getColor().toHEXA().toString(0).replace('#', "");
1063
  addDynamicStyle(selectedCells, selectedColor, partClass);
 
 
 
1064
  })
1065
  }
1066
 
775
  } else {
776
  newValue = value;
777
  }
778
+ if (newValue != ''){
779
+ newClassName = cell.className.replace(cell.className.substring(cell.className.indexOf(partClass), cell.className.indexOf(partClass) + 14), partClass + newValue);
780
+ } else {
781
+ newClassName = cell.className.replace(cell.className.substring(cell.className.indexOf(partClass), cell.className.indexOf(partClass) + 14), '');
782
+ }
783
  } else {
784
  if (partClass == 'wpdt-ff-' || partClass == 'wpdt-fs-') {
785
  newClassName = cell.className + ' ' + partClass + String(value).padStart(6, '0');
786
  } else {
787
+ if (value != ''){
788
+ newClassName = cell.className + ' ' + partClass + value;
789
+ } else {
790
+ newClassName = cell.className + ' ';
791
+ }
792
  }
793
  }
794
  wpdtEditor.setCellMeta(rowIndex, columnIndex, 'className', newClassName.trimStart());
1046
  hsla: false,
1047
  hsva: false,
1048
  cmyk: false,
1049
+ clear: true,
1050
  input: true,
1051
  save: true
1052
  }
1069
  jQuery(element).css("border-bottom-color", color.toHEXA().toString(0));
1070
  selectedColor = pickr.getColor().toHEXA().toString(0).replace('#', "");
1071
  addDynamicStyle(selectedCells, selectedColor, partClass);
1072
+ }).on('clear', color => {
1073
+ jQuery(element).css("border-bottom-color", "");
1074
+ addDynamicStyle(selectedCells, '', partClass);
1075
  })
1076
  }
1077
 
config/config.inc.php CHANGED
@@ -9,7 +9,7 @@ defined('ABSPATH') or die("Cannot access pages directly.");
9
 
10
  // Current version
11
 
12
- define('WDT_CURRENT_VERSION', '2.1.19');
13
 
14
  /**
15
  * Regular Expressions
9
 
10
  // Current version
11
 
12
+ define('WDT_CURRENT_VERSION', '2.1.20');
13
 
14
  /**
15
  * Regular Expressions
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: table, table builder, data tables, tables, charts, simple table, tables fr
6
  Requires at least: 4.0
7
  Tested up to: 5.8.1
8
  Requires PHP: 5.6
9
- Stable tag: 2.1.19
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -238,6 +238,11 @@ This can be changed from the “Number format” drop-down menu in the wpDataTab
238
 
239
  == Changelog ==
240
 
 
 
 
 
 
241
  = 2.1.19 =
242
  * Feature: Added new option for the simple table: “Remove borders”.
243
  * Feature: Added new option for the simple table: “Border collapse” .
6
  Requires at least: 4.0
7
  Tested up to: 5.8.1
8
  Requires PHP: 5.6
9
+ Stable tag: 2.1.20
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
238
 
239
  == Changelog ==
240
 
241
+ = 2.1.20 =
242
+ * Feature: Added clear button in color-picker in simple table.
243
+ * Bugfix: Fixed resetting CSS rule for background and text color in simple table editor.
244
+ * Other small bug fixes and stability improvements
245
+
246
  = 2.1.19 =
247
  * Feature: Added new option for the simple table: “Remove borders”.
248
  * Feature: Added new option for the simple table: “Border collapse” .
templates/admin/dashboard/dashboard.inc.php CHANGED
@@ -342,12 +342,8 @@ $tableChartsCount = WDTTools::getTablesCount('chart');
342
  <div class="alert alert-info m-b-0" role="alert">
343
  <i class="wpdt-icon-info-circle-full"></i>
344
  <ul>
345
-
346
- <li><strong>Feature:</strong> Added new option for simple table: "Remove borders".</li>
347
- <li><strong>Feature:</strong> Added new option for simple table: "Border collapse" .</li>
348
- <li><strong>Feature:</strong> Added new option for simple table: "Border spacing".</li>
349
- <li><strong>Improvement:</strong> Improved checking for existing PHP extension - zlib on the server.</li>
350
- <li>Compatibility with WordPress 5.8.1 approved.</li>
351
  <li>Other small bug fixes and stability improvements.</li>
352
  </ul>
353
  </div>
342
  <div class="alert alert-info m-b-0" role="alert">
343
  <i class="wpdt-icon-info-circle-full"></i>
344
  <ul>
345
+ <li><strong>Feature:</strong> Added clear button in color-picker in simple table</li>
346
+ <li><strong>Bugfix:</strong> Fixed resetting CSS rule for background and text color in simple table editor.</li>
 
 
 
 
347
  <li>Other small bug fixes and stability improvements.</li>
348
  </ul>
349
  </div>
wpdatatables.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: wpDataTables - Tables & Table Charts
4
  Plugin URI: https://wpdatatables.com
5
  Description: Create responsive, sortable tables & charts from Excel, CSV or PHP. Add tables & charts to any post in minutes with DataTables.
6
- Version: 2.1.19
7
  Author: TMS-Plugins
8
  Author URI: https://tms-outsource.com
9
  Text Domain: wpdatatables
3
  Plugin Name: wpDataTables - Tables & Table Charts
4
  Plugin URI: https://wpdatatables.com
5
  Description: Create responsive, sortable tables & charts from Excel, CSV or PHP. Add tables & charts to any post in minutes with DataTables.
6
+ Version: 2.1.20
7
  Author: TMS-Plugins
8
  Author URI: https://tms-outsource.com
9
  Text Domain: wpdatatables