Plugin Directory

Changeset 1820292


Ignore:
Timestamp:
02/12/2018 03:36:18 AM (8 years ago)
Author:
MyThirdEye
Message:

update 4.1.3

Location:
jtrt-responsive-tables/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • jtrt-responsive-tables/trunk/admin/js/vendor/jtrt-responsive-tables-class.js

    r1608416 r1820292  
    437437
    438438JTrtEditor.prototype.reRenderTable = function(){
    439     window.dispatchEvent(new Event('resize'));
     439    if (!window.MSInputMethodContext && !document.documentMode) window.dispatchEvent(new Event('resize'));
    440440    this.handsOnTab.colOffset();
    441441    this.handsOnTab.rowOffset();
     
    446446JTrtEditor.prototype.handleOnSave = function(event){
    447447
    448     //event.preventDefault();
     448    event.preventDefault();
    449449
    450450    var tableDataJT = JSON.stringify(Iam.handsOnTab.getData()),
     
    529529
    530530    Iam.dataBox.html("["+tableDataJT+","+JSON.stringify(tableCellDataNew)+"," +JSON.stringify(tableCellBorderData)+","+JSON.stringify(tableFuncResData)+"]");
    531    
     531   
     532    $(this).parents('form#post').submit();
    532533} // End of handleOnSave
    533534   
  • jtrt-responsive-tables/trunk/admin/partials/jtrt-adminClass-shortcode.php

    r1815411 r1820292  
    5959    }
    6060   
    61     $html .= "<div class='jtTableContainer jtrespo-".$myTableResponsiveStyle." ".$myTableHoverRows." ".$myTableHoverCols."' ".($myTableResponsiveStyle == 'stack' ? "data-jtrt-stack-width='".$myTableStackPrefWidth."'" : "")." ".$myTableHoverRowsCol." ".$myTableHoverColsCol.">";
     61    $html .= "<div class='jtTableContainer jtrespo-".$myTableResponsiveStyle." ".$myTableHoverRows." ".$myTableHoverCols."' ".($myTableResponsiveStyle == 'stack' ? "data-jtrt-stack-width='".$myTableStackPrefWidth."'" : "").">";
    6262
    6363
     
    163163    wp_enqueue_script( 'jtbackendfrontend-js', plugin_dir_url( __FILE__ ) . '../../public/js/jtrt-responsive-tables-public.js', array( 'jquery' ), '4.0', false );
    164164
     165    $custom_css = '';
     166   
     167    if (isset($table_post_meta[0]['jtTableEnableColHighlight'])) {
     168        $custom_css .= ".highlightCols #jtrt_table_" . $jtrt_settings['id'] . " tbody td.jtrt-col-hoveredOver { background:" . $table_post_meta[0]['jtTableEnableColHighlightcol'] . " !important; }";
     169    }
     170
     171    if (isset($table_post_meta[0]['jtTableEnableRowHighlight'])) {
     172        $custom_css .= ".highlightRows #jtrt_table_" . $jtrt_settings['id'] . " tbody tr:hover td { background:" . $table_post_meta[0]['jtTableEnableRowHighlightcol'] . " !important; }";
     173    }   
     174
     175    wp_add_inline_style( 'jtbackendfrontend-css', $custom_css );
     176
    165177    // Blast off! We've done our part here in the server, Javascript will handle the rest.
    166178    return $html;
  • jtrt-responsive-tables/trunk/admin/partials/jtrt-custom-post-type.php

    r1541631 r1820292  
    4343    'has_archive'           => false,       
    4444    'exclude_from_search'   => true,
    45     'publicly_queryable'    => true,
     45    'publicly_queryable'    => false,
    4646    'capability_type'       => 'page',
    4747);
     48
    4849register_post_type( 'jtrt_tables_post', $args );
    4950
  • jtrt-responsive-tables/trunk/jtrt-responsive-tables.php

    r1815411 r1820292  
    1717 * Plugin URI:        https://wordpress.org/plugins/jtrt-responsive-tables/
    1818 * Description:       The most advanced table editor for wordpress.
    19  * Version:           4.1.2
     19 * Version:           4.1.3
    2020 * Author:            John Tendik
    2121 * Author URI:        https://github.com/mythirdeye/jtrt-tables
  • jtrt-responsive-tables/trunk/public/css/jtrt-responsive-tables-public.css

    r1815411 r1820292  
    5151 }
    5252
    53 .jtrespo-scroll{
    54      overflow-x: auto;
     53 .jtrespo-scroll{
     54     overflow-x: auto !important;
    5555 }
    5656
    5757 .jtrespo-scroll table{
    5858     table-layout: inherit;
    59  }
    60  
    61  .jtrespo-scroll{
    62      overflow-x:scroll;
    6359 }
    6460
  • jtrt-responsive-tables/trunk/public/js/jtrt-responsive-tables-public.js

    r1815411 r1820292  
    159159        });
    160160
    161         $('.highlightRows').on('mouseenter', 'tbody tr', function(){
    162             $(this).css('background',$('.highlightRows').attr('data-jtrt-rowhighligh-color'));
    163         });
    164         $('.highlightRows').on('mouseleave', 'tbody tr', function(){
    165             $(this).css('background','inherit');
    166         });
    167 
    168 
    169161        $('.highlightCols').on('mouseenter', 'tbody td', function(){
    170162            var eq = $(this).index() + 1;
    171             $('.highlightCols tbody td:nth-child('+eq+')').css('background',$('.highlightCols').attr('data-jtrt-colhighligh-color'));
     163            $('.highlightCols tbody td:nth-child('+eq+')').addClass('jtrt-col-hoveredOver');
    172164        });
    173165        $('.highlightCols').on('mouseleave', 'tbody td', function(){
    174166            var eq = $(this).index() + 1;
    175             $('.highlightCols tbody td:nth-child('+eq+')').css('background','inherit');
     167            $('.highlightCols tbody td:nth-child('+eq+')').removeClass('jtrt-col-hoveredOver');
    176168        });
    177169
  • jtrt-responsive-tables/trunk/readme.txt

    r1815411 r1820292  
    44Tags: responsive tables, responsive, table, table generator, csv to table, csv, convert csv, responsive table generator, foo tables, responsive table, mobile tables, html table generator, html5 table
    55Requires at least: 4.0
    6 Tested up to: 4.9.2
    7 Stable tag: 4.1.2
     6Tested up to: 4.9.4
     7Stable tag: 4.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515= JTRT Responsive Tables =
    1616 
    17 JTRT Responsive Tables is a plugin designed to help average wordrpess users create amazing responsive tables for their websites without having to deal with HTML or CSS. It is now easier than ever to create tables!
     17JTRT Responsive Tables is the most advanced HTML table editor for WordPress. Create amazing responsive tables without having to deal with HTML or CSS!
    1818
    1919= Features =
     
    106106== Changelog ==
    107107
     108= 4.1.3 =
     109* Changed scroller option scroll bar to show only when needed
     110* Fixed hovers on tables, no longer should the original background disappear
     111* Fixed hover being done with JS, its now done through CSS as it should be
     112* Fixed IE11 save bug
     113* Removed preview post link as it was misleading
     114
    108115= 4.1.2 =
    109116* Fixed sorting for scroller responsive option
Note: See TracChangeset for help on using the changeset viewer.