From a1ab7f6e6c06476a8014afc6b6a263311d79131f Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 27 Jul 2022 17:04:05 +0600 Subject: [PATCH 1/6] still working --- assets/js/admin.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/assets/js/admin.js b/assets/js/admin.js index a256aed8..db0420a6 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -1,3 +1,31 @@ +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-','') ); + } + }); + } +}); + +$(document.body).on('click','p.wpt-max_input_vars-warning',function(){ + //.not('.enabled') + // alert(333); + //http://wowmotty.blogspot.com/2011/10/jquery-rename-attribute-renameattr.html + // $('input.colum_data_input.shortcode').renameAttr('name', 'backup-name' ); + // $('.wpt_column_sortable .wpt_sortable_peritem.enabled').find('input,select').each(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' ); + +}); (function($) { 'use strict'; $(document).ready(function() { From 228191179e97210e2f7f0ab997f6fac88edddb85 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 27 Jul 2022 17:20:54 +0600 Subject: [PATCH 2/6] added a function OptimizeColumnWithName() --- assets/js/admin.js | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/assets/js/admin.js b/assets/js/admin.js index db0420a6..c0f963f4 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -13,19 +13,6 @@ jQuery.fn.extend({ } }); -$(document.body).on('click','p.wpt-max_input_vars-warning',function(){ - //.not('.enabled') - // alert(333); - //http://wowmotty.blogspot.com/2011/10/jquery-rename-attribute-renameattr.html - // $('input.colum_data_input.shortcode').renameAttr('name', 'backup-name' ); - // $('.wpt_column_sortable .wpt_sortable_peritem.enabled').find('input,select').each(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' ); - -}); (function($) { 'use strict'; $(document).ready(function() { @@ -200,6 +187,21 @@ $(document.body).on('click','p.wpt-max_input_vars-warning',function(){ }); }); + 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); @@ -433,6 +435,7 @@ $(document.body).on('click','p.wpt-max_input_vars-warning',function(){ targetLiSelector.removeClass('enabled'); }); } + OptimizeColumnWithName(); // // targetLiSelector.fadeIn(function(){ // $(this).css('opacity','0.3'); @@ -469,6 +472,7 @@ $(document.body).on('click','p.wpt-max_input_vars-warning',function(){ $(this).removeClass('enabled'); targetLiSelector.removeClass('enabled'); } + OptimizeColumnWithName(); }); /*********Columns , meta sorting orders and mobile checkbox controlling end here************/ From 7ffd88b12e58b44d4096afd92849b47e141d30dd Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Wed, 27 Jul 2022 17:22:03 +0600 Subject: [PATCH 3/6] max_input_vars comment removed --- admin/post_metabox_form.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/admin/post_metabox_form.php b/admin/post_metabox_form.php index 149ce2dd..571d2eb3 100644 --- a/admin/post_metabox_form.php +++ b/admin/post_metabox_form.php @@ -1,19 +1,5 @@
- -

- Your server max_input_vars: . - It's should be gatter than .
- How can you handle it. See Tutorial - -

- + Date: Thu, 28 Jul 2022 09:34:45 +0600 Subject: [PATCH 4/6] 'WPT_DEV_VERSION', '3.2.3.0' --- woo-product-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woo-product-table.php b/woo-product-table.php index fa440551..e9989b0f 100644 --- a/woo-product-table.php +++ b/woo-product-table.php @@ -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' ) ){ From b3246422f0f3b88adf14c210cdf197d3256ddba5 Mon Sep 17 00:00:00 2001 From: Saiful Islam Date: Thu, 28 Jul 2022 09:37:55 +0600 Subject: [PATCH 5/6] Changelog --- readme.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/readme.txt b/readme.txt index 0a796442..aac5f6c2 100644 --- a/readme.txt +++ b/readme.txt @@ -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 From 920c04120ca6b514d821153a7322e74da0680b93 Mon Sep 17 00:00:00 2001 From: fatimakhatungit Date: Thu, 28 Jul 2022 09:38:45 +0600 Subject: [PATCH 6/6] added --- assets/css/universal.css | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/assets/css/universal.css b/assets/css/universal.css index 43217931..1572b011 100644 --- a/assets/css/universal.css +++ b/assets/css/universal.css @@ -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; @@ -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{