Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting of TemplateScript menus is inverted #4

Closed
Pathoschild opened this issue May 29, 2012 · 2 comments
Closed

Formatting of TemplateScript menus is inverted #4

Pathoschild opened this issue May 29, 2012 · 2 comments
Assignees
Labels
Milestone

Comments

@Pathoschild
Copy link
Owner

Imported from JIRA and requested by Helder Wiki:

  • Copy the code from https://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/TemplateScript to your common.js
  • Delete any cookies related to the sidebar (vector-nav-p-***), e.g. by executing this on Google Chrome console:
    • $.cookie('vector-nav-p-tb', null, {path: '/'});
    • $.cookie('vector-nav-p-templatescript-0', null, {path: '/'});
  • Open a page in edit mode (on vector skin)
    • The color of the default "Toolbox" menu will be blue while its content is hidden (class="portal collapsed"), and gray when the items are displayed (class="portal expanded").
    • The color of the default "Toolbox" menu will be blue while its content is displayed (class="portal collapsed").
  • Click in the "TemplateScript" menu, to hide its content
    • The items are hidden but the color will be gray (because of class="portal expanded").
  • Reloading the page keeps the gray color but shows the items again (class="portal expanded").
@Pathoschild
Copy link
Owner Author

Imported from JIRA:

Helder Wiki added a comment - 27 May 2012 21:13:58
It seems that by changing

$(pathoschild.TemplateScript._Initialize);

to

mw.loader.using(['ext.vector.collapsibleNav'], function(){ $(pathoschild.TemplateScript._Initialize); });

this issue disapears.

PS: the module "ext.vector.collapsibleNav" is defined on vector extension[1].

[1] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Vector.git;a=blob;f=Vector.php;h=abe488fbc5a455df20503c199b57741b84b4a63d;hb=HEAD#l70

@Pathoschild
Copy link
Owner Author

Fixed in 0.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant