Welcome Guest, Not a member yet? Register   Sign In
table sort in environment "development"
#1

Dear all,
i have identified a little problem: If i have the environment "development" active, my tables are sortable. First i suggest it have to do with my used Framework (Fomantic).
Today i recognised when i´am switch to "production", the table´s are working as expected (without sorting !) and my own sorting functions are working correct.
It´s not a major issue, but looks strange for me Smile
Has anyone a glue where i can disable the behaviour of tables sorting, so that my tables are working as expected in Development-Mode too? I try to find the events behind, but has no luck...

kr Tom_LP
PS: used CI 4.2.6
Reply
#2

(This post was last modified: 11-02-2022, 04:28 AM by MMLTech. Edit Reason: Found a fix for the issue )

(10-09-2022, 03:15 PM)Tom_LP Wrote: Dear all,
i have identified a little problem: If i have the environment "development" active, my tables are sortable. First i suggest it have to do with my used Framework (Fomantic).
Today i recognised when i´am switch to "production", the table´s are working as expected (without sorting !) and my own sorting functions are working correct.
It´s not a major issue, but looks strange for me Smile
Has anyone a glue where i can disable the behaviour of tables sorting, so that my tables are working as expected in Development-Mode too? I try to find the events behind, but has no luck...

kr Tom_LP
PS: used CI 4.2.6


https://github.com/codeigniter4/CodeIgni...ssues/6808


Created a hackfix that is not causing any errors.

1. Go to system\ThirdParty\Kint\resources\compiled\rich.js and beautify this js file
2. In line 183 comment the following

Code:
else
    e.ctrlKey || l.sortTable(t.parentNode.parentNode.parentNode, t.cellIndex)

Use this instead

Code:
else if($(t.closest('#debug-bar')).length)
                l.sortTable(t.parentNode.parentNode.parentNode, t.cellIndex)
            else
                e.ctrlKey

This will check if parent element is our debug bar.
Web developer creating tools for streamers
Countdown Tools: https://obscountdown.com
Reply




Theme © iAndrew 2016 - Forum software by © MyBB