Commit 217b516a authored by lindonb's avatar lindonb

[bp/r66027][FIX] Reverting r65662 (merge of r65661) and related r65602. The...

[bp/r66027][FIX] Reverting r65662 (merge of r65661) and related r65602. The headers option was overriding the class settings (settings can be made either way, but only one method should be used and the code has been set up to use classes). Not sure what this was trying to fix but report any remaining issues and I will look into it. Also removed old tablesorter code in tiki-jquery.js that was involved with these commits.
parent 185ff617
......@@ -35,8 +35,6 @@ class Table_Code_MainOptions extends Table_Code_Manager
/*** onRenderHeader option - change html elements before table renders. Repeated for each column. ***/
$orh = [];
/*** Headers ***/
$headers = [];
/* First handle column-specific code since the array index is used for the column number */
foreach (parent::$s['columns'] as $col => $info) {
//turn off column resizing per settings
......@@ -116,7 +114,6 @@ class Table_Code_MainOptions extends Table_Code_Manager
$orh[$col] .= '.' . $attr . '(\'' . $args . '\')';
}
$orh[$col] .= ';}';
$headers[] = "'$col': { filter: 'text', sorter: 'text' }";
}
unset($col, $info);
}
......@@ -138,11 +135,6 @@ class Table_Code_MainOptions extends Table_Code_Manager
}
/*** end onRenderHeader section ***/
/*** headers ***/
if (count($headers) > 0) {
$mo[] = $this->iterate($headers, 'headers: {', '}', '', '', ', ', ', ' );
}
/*** widgets ***/
//standard ones
$w[] = 'stickyHeaders';
......
......@@ -488,15 +488,7 @@ $(function() { // JQuery's DOM is ready event - before onload
}
});
}
// tablesorter setup (sortable tables?)
if (jqueryTiki.tablesorter) {
$('.sortable').tablesorter({
widthFixed: true // ??
// widgets: ['zebra'], // stripes (coming soon)
});
}
// ColorBox setup (Shadowbox, actually "<any>box" replacement)
if (jqueryTiki.colorbox && !jqueryTiki.mobile) {
$().on('cbox_complete', function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment