https://bugzilla.wikimedia.org/show_bug.cgi?id=23807

--- Comment #4 from Krinkle <krinklem...@gmail.com> 2010-06-07 13:36:29 UTC ---
Just thought I'd explain this for others to read:

The Vector extension / Vector preferences, in contrary to other extensions and
preferences, dont have an effect the enable/disable state directly.

Instead it echo'es something like the following on the page:

<code>
<script type="text/javascript">var wgVectorPreferences = {
    "collapsiblenav": {
        "enable": 1
    },
    "editwarning": {
        "enable": 1
    }
};
var wgVectorEnabledModules = {
    "collapsiblenav": true,
    "collapsibletabs": true,
    "editwarning": true,
    "footercleanup": false,
    "simplesearch": true
};</script>
</code> 

And somewhere after this the actual extension is loaded via javascript and when
it initialises it checks these variables.

Because of this it is possible to override the above by putting something in
the local user-custom vector.js file because it is loaded in the head-section.

However, functions like onloadHook and importScriptURI() aren't excecuted
untill after the page has finished loading (and the extention is initialized) -
so toggling some variable switches isn't having any effect anymore then.

--
Krinkle

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to