[Phpmyadmin-devel] Remember the last way user sorted tables

Tyron Madlener tyronx at gmail.com
Tue May 24 18:48:39 CEST 2011


On Tue, May 24, 2011 at 6:12 PM, Marc Delisle <marc at infomarc.info> wrote:
> Aris Feryanto a écrit :
>> Hi all,
>>
>> I've pushed the implementation of feature "Remember the last way user
>> sorted tables" when browsing tables. You may try it at the demo server [0].
>>
>> Current implementation only remember the sorting in the session
>> variable. So, when you logout and login again, the sorting will be
>> refreshed.
>> In order to keep it persistent across session, I will add a new table in
>> phpMyAdmin database and store the sorting and maybe other
>> "browsing"-related data in there later.
>>
>> In the settings page, I added new boolean field (RememberConfig) under
>> Settings -> Main frame -> Browse mode -> Remember table's sorting
>> I set the default value to "true", so you can test the demo without
>> changing any settings.
>>
>> Any feedback or suggestion is really appreciated.
>
> Aris,
>
> The feature works well so far. Please have a look at this notice:
>
> Notice in ./sql.php#364
> Use of undefined constant table_ref - assumed 'table_ref'
>

There is a bug in commit 8f2a040f41f2cd03e359bcadeb8d9f24c23290fa
(which seems related to the discussed table list here).

This added lines of js code in function.js throw "Uncaught TypeError:
Cannot call method 'PMA_reloadRecentTable' of undefined" when you open
a page in a new tab since there is no window.parent

+        $('#update_recent_tables').ready(function() {
+            window.parent.frame_navigation.PMA_reloadRecentTable();
+        });

> --
> Marc Delisle
> http://infomarc.info
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Phpmyadmin-devel mailing list
> Phpmyadmin-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>




More information about the Developers mailing list