NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
12 Sep 2019

Metismenu has been updated from 1.0.3 to 1.1.0
Unfortunately they didnt follow semver so this PR is to update our code to make sure the menu still works - specifically the open and closed submenu

avatar brianteeman brianteeman - open - 12 Sep 2019
avatar brianteeman brianteeman - change - 12 Sep 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Sep 2019
Category Administration Templates (admin) JavaScript Repository NPM Change
avatar brianteeman brianteeman - change - 12 Sep 2019
The description was changed
avatar brianteeman brianteeman - edited - 12 Sep 2019
avatar ciar4n
ciar4n - comment - 12 Sep 2019

For reference the metismenu script was added here.. #22587

avatar C-Lodder
C-Lodder - comment - 13 Sep 2019

@brianteeman Just looked at the plugin settings and here's what I saw:

This:

var ClassNames = {
  activeClass: "active",
  collapseClass: "collapse",
  collapseInClass: "in",
  collapsingClass: "collapsing"
}

was replaced with:

var ClassName = {
  ACTIVE: "mm-active",
  COLLAPSE: "mm-collapse",
  COLLAPSED: "mm-collapsed",
  COLLAPSING: "mm-collapsing",
  METIS: "metismenu",
  SHOW: "mm-show"
};

So there are other classes that need updating.

semver at it's finest

avatar ciar4n
ciar4n - comment - 13 Sep 2019

Is it not easier to set var ClassNames to match the current markup/js?

avatar C-Lodder
C-Lodder - comment - 13 Sep 2019

@ciar4n The variable is hardcoded in the plugin and can't be overridden unless you use a global, which is horrible.

avatar brianteeman
brianteeman - comment - 13 Sep 2019

OK - all makes sense now. The docs @wilsonge showed me would only really work if we were not also using our own js and css. I think i can fix it now. Thanks

avatar brianteeman brianteeman - change - 13 Sep 2019
Labels Added: NPM Resource Changed ?
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2019
Category Administration Templates (admin) JavaScript Repository NPM Change Modules Administration Templates (admin) JavaScript Repository NPM Change
avatar brianteeman
brianteeman - comment - 13 Sep 2019

Not going to lie and say I understand the changes I made and maybe I missed something but it seems to work

avatar brianteeman
brianteeman - comment - 14 Sep 2019

updated branch to trigger drone

avatar brianteeman
brianteeman - comment - 16 Sep 2019

Conflicts resolved

avatar brianteeman brianteeman - change - 16 Sep 2019
The description was changed
avatar brianteeman brianteeman - edited - 16 Sep 2019
avatar C-Lodder C-Lodder - test_item - 20 Sep 2019 - Tested successfully
avatar C-Lodder
C-Lodder - comment - 20 Sep 2019

I have tested this item successfully on c5dce2e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26275.

avatar C-Lodder C-Lodder - test_item - 20 Sep 2019 - Tested successfully
avatar C-Lodder
C-Lodder - comment - 20 Sep 2019

I have tested this item successfully on c5dce2e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26275.

avatar Quy Quy - test_item - 24 Sep 2019 - Tested successfully
avatar Quy
Quy - comment - 24 Sep 2019

I have tested this item successfully on 5b3eaaf


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26275.

avatar Quy Quy - change - 24 Sep 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 24 Sep 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26275.

avatar infograf768 infograf768 - change - 25 Sep 2019
Labels Added: ?
avatar wilsonge wilsonge - change - 25 Sep 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-09-25 22:16:44
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 Sep 2019
avatar wilsonge wilsonge - merge - 25 Sep 2019
avatar wilsonge
wilsonge - comment - 25 Sep 2019

Thanks!

avatar brianteeman
brianteeman - comment - 25 Sep 2019

Thanks

Add a Comment

Login with GitHub to post a comment