Skip to content

Commit

Permalink
Fix nested table problem in mosaic
Browse files Browse the repository at this point in the history
  • Loading branch information
kksidd committed Jan 15, 2020
1 parent 0c39a22 commit ca80aa6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion couch/addons/repeatable/repeatable.php
Expand Up @@ -796,7 +796,7 @@ static function _render_repeatable_assets(){
?>
if ( !window.COUCH ) var COUCH = {};
$(function(){
$('table.rr tbody').sortable({
$('table.rr > tbody').sortable({
axis: "y",
handle: ".dg-arrange-table-rows-drag-icon",
helper: function (e, ui) { // https://paulund.co.uk/fixed-width-sortable-tables
Expand Down
6 changes: 3 additions & 3 deletions couch/addons/repeatable/tablegear/tablegear.js
Expand Up @@ -64,11 +64,11 @@

headers = $('thead th', table)

tbody = requireElement('tbody', table, '<tbody> is required inside <table>');
tbody = requireElement('> tbody', table, '<tbody> is required inside <table>');
tbody.bind( '_reorder', _reordered );

nextid = 0;
$('tbody tr', table).each(function(rowIndex){
table.find("> tbody > tr").each(function(rowIndex){
var el = $(this);
if(el.hasClass('noDataRow')) return;
initializeRow(el, rowIndex);
Expand Down Expand Up @@ -119,7 +119,7 @@

function update(){
rows = [];
$('tbody tr', table).each(function(rowIndex){
table.find("> tbody > tr").each(function(rowIndex){
var el = $(this);
rows.push(el);
});
Expand Down
2 changes: 1 addition & 1 deletion couch/header.php
Expand Up @@ -50,7 +50,7 @@
if( !defined('K_COUCH_DIR') ) die(); // cannot be loaded directly

define( 'K_COUCH_VERSION', '2.2.1' ); // Changes with every release
define( 'K_COUCH_BUILD', '20190417' ); // YYYYMMDD - do -
define( 'K_COUCH_BUILD', '20200110' ); // YYYYMMDD - do -

if( file_exists(K_COUCH_DIR.'config.php') ){
require_once( K_COUCH_DIR.'config.php' );
Expand Down

0 comments on commit ca80aa6

Please sign in to comment.