|
974 | 974 | $dropZone.append('<i class="edge verticalEdge bottomEdge fa"></i>')
|
975 | 975 | .parent().attr('colspan', 2)
|
976 | 976 | .parent().after('<tr class="lines"><td colspan="2"><div class="downLine"></div></td></tr>'
|
977 |
| - + '<tr class="lines"><td class="rightLine"> </td><td class="leftLine"> </td></tr>' |
| 977 | + + '<tr class="lines"><td class="rightLine"></td><td class="leftLine"></td></tr>' |
978 | 978 | + '<tr class="nodes"></tr>')
|
979 | 979 | .siblings(':last').append($dragged.find('.horizontalEdge').remove().end().closest('table').parent());
|
980 | 980 | } else {
|
|
984 | 984 | if (!$dragged.find('.horizontalEdge').length) {
|
985 | 985 | $dragged.append(horizontalEdges);
|
986 | 986 | }
|
987 |
| - $dropZone.closest('tr').siblings().eq(1).children(':last').before('<td class="leftLine topLine"> </td><td class="rightLine topLine"> </td>') |
| 987 | + $dropZone.closest('tr').siblings().eq(1).children(':last').before('<td class="leftLine topLine"></td><td class="rightLine topLine"></td>') |
988 | 988 | .end().next().append($dragged.closest('table').parent());
|
989 | 989 | var $dropSibs = $dragged.closest('table').parent().siblings().find('.node:first');
|
990 | 990 | if ($dropSibs.length === 1) {
|
|
1168 | 1168 | .done(function($nodeDiv) {
|
1169 | 1169 | $table.append($('<tr class="hidden">').append($('<td colspan="2">').append($nodeDiv.removeClass('slide-up').addClass('slide-down'))));
|
1170 | 1170 | $table.append('<tr class="lines hidden"><td colspan="2"><div class="downLine"></div></td></tr>');
|
1171 |
| - var linesRow = '<td class="rightLine"> </td><td class="leftLine"> </td>'; |
| 1171 | + var linesRow = '<td class="rightLine"></td><td class="leftLine"></td>'; |
1172 | 1172 | $table.append('<tr class="lines hidden">' + linesRow + '</tr>');
|
1173 | 1173 | var $chart = that.$chart;
|
1174 | 1174 | $chart.prepend($table)
|
|
1194 | 1194 | complementLine: function ($oneSibling, siblingCount, existingSibligCount) {
|
1195 | 1195 | var lines = '';
|
1196 | 1196 | for (var i = 0; i < existingSibligCount; i++) {
|
1197 |
| - lines += '<td class="leftLine topLine"> </td><td class="rightLine topLine"> </td>'; |
| 1197 | + lines += '<td class="leftLine topLine"></td><td class="rightLine topLine"></td>'; |
1198 | 1198 | }
|
1199 | 1199 | $oneSibling.parent().prevAll('tr:gt(0)').children().attr('colspan', siblingCount * 2)
|
1200 | 1200 | .end().next().children(':first').after(lines);
|
|
0 commit comments