Is there anybody who understands the parameter tabselectedtofront?

Is there anybody who understands the parameter tabselectedtofront?

Eduardo Domínguez Vázquez發表於
Number of replies: 1
Hi, folks.

I've been checking all the configuration parameters in moodle and I've found one of them that seems to be useless:

tabselectedtofront

Setting this parameter to 'yes' or 'no" is doing the same... ok, may be I've got to go to the optician but I haven't found any page where I can see the difference.
評比平均分數: -
In reply to Eduardo Domínguez Vázquez

Re: Is there anybody who understands the parameter tabselectedtofront?

Eloy Lafuente (stronk7)發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 Testers的相片
Hi Eduardo,

if I'm not wrong that configuration setting is used to define if, for tabs within the same level expanding visually over more than one "row", the row with the selected tab must be moved "to front" (I think it's an effect that Windows OS uses to do with rows, moving the selected down, like being in a pile).

In Moodle, AFAIK, currently all tabs having more than one row are used as "sub-tabs" (i.e. for each tab selected in the main row, a list of options is showed in the secondary row).

So perhaps this setting could be erased from Moodle.

The only notable exception I've been able to find not using the "sub-tabs" concept explained above are the glossary tabs, where tabs are using two rows and all them are "main-tabs". Curiously, setting $CFG->tabselectedtofront breaks correct visualization of such glossary tabs so, definitively I would:

1) Delete that setting from DB.
2) Delete that setting from admin pages.
3) Delete depending code from weblib.php

+1 for that unless some unknown reason prevents that.

Ciao 微笑

Edited: I've created track MDL-8746 related to this.