Modify

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#12624 closed defect (fixed)

No Markup possible

Reported by: anonymous Owned by: Peter Suter
Priority: normal Component: TableSorterPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

No markup at all.

Neither

<tr>
    <td>192.168.1.2</td>
    <td>hostname</td>
    <td>[wiki:host Host] & Gateway</td>
    <td></td>
    <td>GW for internal Host traffic</td>
</tr>

nor even

<tr>
    <td>192.168.1.2</td>
    <td>hostname</td>
    <td><a>http://something</a> & Gateway</td>
    <td></td>
    <td>GW for internal Host traffic</td>
</tr>

will work.

Attachments (0)

Change History (8)

comment:1 Changed 3 years ago by anonymous

correction:

<tr>
    <td>192.168.1.2</td>
    <td>hostname</td>
    <td><a href="http://something">Something</a> & Gateway</td>
    <td></td>
    <td>GW for internal Host traffic</td>
</tr>

Will work, but that's PITA.

comment:2 Changed 3 years ago by chad.trytten@…

Works for me with the [wiki:/PATH/TO/PAGE Short Name] links. Perhaps it was updated to correct this issue?

comment:3 Changed 2 years ago by rohitkataria@…

Links don't work for me - neither internal to trac project nor do things like http://google.com look like clickable link. The mailto tag also doesn't work. Would it awesome if this could please be fixed.

comment:4 Changed 2 years ago by Peter Suter

In 16371:

TableSorterPlugin: Make work with normal wiki tables.
Use Javascript to move tr rows containing th elements to dynamically created thead,
so jquery.tablesorter can do its magic.
Target all tables with .wiki class automatically so it "just works" without doing anything special.
(see #12850)

This also makes other normal wiki markup like links work.
(see #12624)

comment:5 Changed 2 years ago by Peter Suter

Resolution: fixed
Status: newclosed

comment:6 Changed 2 years ago by Ryan J Ollos

Using jQuery at global scope would avoid the possibility of conflicts:

-$(document).ready(function()
-    {
-        var tables = $('table.wiki');
-        tables.each(function(index) {
-            var table = $(this);
-            var thRows =  table.find("tr:has(th)");
-            var thead = jQuery("<thead></thead>").appendTo(table);
-            var copy = thRows.clone(true).appendTo(thead);
-            thRows.remove();
-        });
-        tables.tablesorter();
-    }
-);
+jQuery(document).ready(function($) {
+    var tables = $('table.wiki');
+    tables.each(function(index) {
+        var table = $(this);
+        var thRows =  table.find("tr:has(th)");
+        var thead = $("<thead></thead>").appendTo(table);
+        var copy = thRows.clone(true).appendTo(thead);
+        thRows.remove();
+    });
+    tables.tablesorter();
+});

comment:7 Changed 2 years ago by Peter Suter

In 16392:

TableSorterPlugin: Using jQuery at global scope to avoid the possibility of conflicts.
(see #12624)

comment:8 Changed 2 years ago by anonymous

Thank you sooooo much!!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Peter Suter.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.