Plugin Directory

Changeset 2498654


Ignore:
Timestamp:
03/18/2021 11:04:07 AM (5 years ago)
Author:
tsinf
Message:

Version 2.0.3

  • Fix little graphical issues (cell menu) and add js improvements (load table meta step-by-step to prevent to many request at the same time)
Location:
ts-comfort-database
Files:
40 added
4 edited

Legend:

Unmodified
Added
Removed
  • ts-comfort-database/trunk/css/table.css

    r2495997 r2498654  
    365365    min-height: 40px;
    366366    padding: 10px 30px 10px 18px;
    367     width: 220px;
     367    width: 275px;
    368368    z-index: 0;
     369}
     370
     371.tsinf_comfortdb_table_data_wrapper .tsinf_comfortdb_table tbody tr:not(.prepared_to_delete) td .tcellmenu_container .tcellmenu_option .option_text
     372{
     373    overflow: hidden;
     374    text-overflow: ellipsis;
     375    white-space: nowrap;
    369376}
    370377
  • ts-comfort-database/trunk/js/overview.js

    r2495997 r2498654  
    11var tsinf_table_to_csv_refresh_progress_timer;
     2var tsinf_get_row_metadata_timer;
     3var tsinf_get_row_metadata = true;
     4var current_row_meta_data = 0;
     5
    26function tsinf_table_to_csv_refresh_progress(target_progress)
    37{
     
    3741}
    3842
     43function tsinf_get_table_metainfo()
     44{
     45    try {
     46        var table = jQuery("#tsinf_comfortdb_table_overview");
     47        var rows = table.find(".tsinf_comfortdb_table_overview_row");
     48       
     49        if(tsinf_get_row_metadata === true && rows !== undefined)
     50        {
     51            var table_count = rows.length;
     52            if(table_count > 0 && current_row_meta_data < table_count)
     53            {
     54                tsinf_get_row_metadata = false;
     55                var row = rows.eq(current_row_meta_data); // jQuery(this);
     56                var target_size = row.find(".tsinf_comfortdb_used_space");
     57                var target_engine = row.find(".tsinf_comfortdb_engine");
     58                var table = row.data("table-name");
     59                var auth = row.data("auth");
     60               
     61                var data = {
     62                    'action': 'get_table_struct_meta',
     63                    'table': table,
     64                    'security': auth
     65                };
     66               
     67                jQuery.post(ajaxurl, data, function(response) {
     68                    try {
     69                        target_size.html(response.size);
     70                        target_engine.html(response.engine);
     71                        current_row_meta_data++;
     72                        tsinf_get_row_metadata = true;
     73                    } catch(e)
     74                    {
     75                    }
     76                   
     77                });
     78            } else {
     79                window.clearInterval(tsinf_get_row_metadata_timer);
     80            }
     81        }
     82    } catch(e)
     83    {
     84        console.log(e);
     85        window.clearInterval(tsinf_get_row_metadata_timer);
     86    }
     87}
     88
     89
    3990jQuery(document).ready(function() {
    40     var table = jQuery("#tsinf_comfortdb_table_overview");
    41     var rows = table.find(".tsinf_comfortdb_table_overview_row");
    42    
    43     if(rows.length > 0)
    44     {
    45         rows.each(function() {
    46             var row = jQuery(this);
    47             var target_size = row.find(".tsinf_comfortdb_used_space");
    48             var target_engine = row.find(".tsinf_comfortdb_engine");
    49             var table = row.data("table-name");
    50             var auth = row.data("auth");
    51            
    52             var data = {
    53                 'action': 'get_table_struct_meta',
    54                 'table': table,
    55                 'security': auth
    56             };
    57            
    58             jQuery.post(ajaxurl, data, function(response) {
    59                 try {
    60                     target_size.html(response.size);
    61                     target_engine.html(response.engine);
    62                 } catch(e)
    63                 {
    64                 }
    65                
    66             });
    67    
    68         });
    69     }
     91    tsinf_get_row_metadata_timer = window.setInterval(tsinf_get_table_metainfo, 1000);
    7092   
    7193    jQuery("#tsinf_comfortdb_table_overview .tsinf_comfortdb_table_overview_row .tsinf_comfortdb_options .export_to_csv").click(function() {
  • ts-comfort-database/trunk/plugin.php

    r2497922 r2498654  
    77 Author: Tobias Spiess
    88 Author URI: https://www.spiess-informatik.de
    9  Version: 2.0.2
     9 Version: 2.0.3
    1010 Text-Domain: tsinf_comfortdb_plugin_textdomain
    1111 Domain Path: /languages
  • ts-comfort-database/trunk/readme.txt

    r2497922 r2498654  
    3939
    4040== Changelog ==
     41*2.0.3
     42Fix little graphical issues and add js improvements
     43
    4144*2.0.2
    4245Add missing menu image
Note: See TracChangeset for help on using the changeset viewer.