Skip to content

Commit

Permalink
Merge pull request #230 from codersaiful/3.2.3.0
Browse files Browse the repository at this point in the history
3.2.3.0
  • Loading branch information
codersaiful authored Jul 28, 2022
2 parents 13b7db8 + b6b2c93 commit e6f610d
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 17 deletions.
16 changes: 1 addition & 15 deletions admin/post_metabox_form.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
<div id="wpt_configuration_form" class="wpt_shortcode_gen_panel ultraaddons ultraaddons-wrapper">
<?php
$max_input_var = ini_get('max_input_vars');
$limit = class_exists( 'WOO_Product_Table' ) ? 1300 : 960;
if( $max_input_var < $limit ){
?>
<p class="wpt-max_input_vars-warning">
Your server <code> max_input_vars: <?php echo esc_html( $max_input_var ); ?> </code>.
It's should be gatter than <?php echo esc_attr( $limit ); ?>. <br>
How can you handle it. <a href="https://wooproducttable.com/doc/troubleshoots/full-table-data-is-not-saving/">See Tutorial</a>

</p>
<?php
}

do_action( 'wpto_form_top', $post ); ?>
<?php do_action( 'wpto_form_top', $post ); ?>
<!-- New Version's Warning. We will remove it from 5.00 | End -->
<?php
/**
Expand Down
27 changes: 26 additions & 1 deletion assets/css/universal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,24 @@ table.wpt_product_table tr.wpt_selected_tr .wpt_quantity{
td.wpt_product_title {
position: relative;
}
/* fatima */
table.custom_table tbody .wpt_product_title {
max-width: 450px;
}
.custom_table .wpt_row td img {
margin: 0 !important;
padding:10px 0;
}

.wpt_for_thumbs_desc.wpt_thumbnails>img {
display: inline;
}
/* fatima */
tbody tr.visible_row.wpt_row .col_inside_tag.action {
align-items: flex-start;
}


/*customize*/
.wpt_for_product_action{
margin-bottom: 5px;
Expand Down Expand Up @@ -1249,7 +1264,17 @@ table.wpt_product_table tr.wpt_selected_tr .wpt_quantity{
td.wpt_Message>input.message {
width: 100%;
}

.custom_table .wpt_row td img {
margin: 0 !important;
padding:10px 0;
}
tbody tr.visible_row.wpt_row .col_inside_tag.action {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
align-content: space-around;
}
/* Hide table headers (but not display: none;, for accessibility) */
table#wpt_table.mobile_responsive.wpt_product_table thead tr,
table#wpt_table.mobile_responsive.wpt_product_table td.wpt_total.total_general{
Expand Down
32 changes: 32 additions & 0 deletions assets/js/admin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
jQuery.fn.extend({
renameAttr: function( name, newName, removeData ) {
var val;
return this.each(function() {
val = jQuery.attr( this, name );
jQuery.attr( this, newName, val );
jQuery.removeAttr( this, name );
// remove original data
if (removeData !== false){
jQuery.removeData( this, name.replace('data-','') );
}
});
}
});

(function($) {
'use strict';
$(document).ready(function() {
Expand Down Expand Up @@ -172,6 +187,21 @@
});
});

OptimizeColumnWithName();
/**
* When column will hide, or in display none, than we will change his attribute (name) to (backup-name)
* and when it will come on .enabled class
* we will change it's name to again attribute (name)
*
* @since 3.2.2.0
*/
function OptimizeColumnWithName(){
setTimeout(function(){
$('.wpt_column_sortable .wpt_sortable_peritem').not('.enabled').find('input,select').renameAttr('name', 'backup-name' );
$('.wpt_column_sortable .wpt_sortable_peritem.enabled').find('input,select').renameAttr('backup-name', 'name' );
},1000);

}
$(document).on('click','span.extra_all_on_off',function(){
var key = $(this).data('key');
var thisExpand = $(this);
Expand Down Expand Up @@ -405,6 +435,7 @@
targetLiSelector.removeClass('enabled');
});
}
OptimizeColumnWithName();
//
// targetLiSelector.fadeIn(function(){
// $(this).css('opacity','0.3');
Expand Down Expand Up @@ -441,6 +472,7 @@
$(this).removeClass('enabled');
targetLiSelector.removeClass('enabled');
}
OptimizeColumnWithName();
});

/*********Columns , meta sorting orders and mobile checkbox controlling end here************/
Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ You can easily show specific category products. While creating new table click o

== Changelog ==

= 3.2.3 =
* Big Data not saving issue fixed
* Data Form Saving Optimized
* Bug Fix

= 3.2.2 =
* Undefine post_status issue fixed of Table Preview page.
* Class name issue fixed on Table preview page
Expand Down
2 changes: 1 addition & 1 deletion woo-product-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

if( ! defined( 'WPT_DEV_VERSION' ) ){
define( 'WPT_DEV_VERSION', '3.2.2.0' );
define( 'WPT_DEV_VERSION', '3.2.3.0' );
}

if( ! defined( 'WPT_CAPABILITY' ) ){
Expand Down

0 comments on commit e6f610d

Please sign in to comment.