PnP-Tools icon indicating copy to clipboard operation
PnP-Tools copied to clipboard

BUG : When navigating to popup dialog - eg. RE ORDER LINKS

Open GrumpyWookie opened this issue 7 years ago • 4 comments

When clicking on the button for 'reorder links' from a "Summary Links" webpart, there is a JS error.

I've included a one line change - which solves the issue - as shown below .

This is because the page doesn't have "DeltaTopNavigation" - and so I added the line in BOLD.

Is someone able to check/agree - and then do a PULL/COMMIT ??

    setUpToggling: function () {
        /* if it is already responsivized, return */
        if (document.getElementById('navbar-toggle')) { return; }

        /* Set up sidenav toggling */
        var topNav = document.getElementById('DeltaTopNavigation');

        **_if (!topNav){ return; } // for popup dialogs - eg. re-order links_**
        
        var topNavClone = topNav.cloneNode(true);
        topNavClone.className = topNavClone.className + ' mobile-only';
        topNavClone = cloneSPIdNodes(topNavClone);

GrumpyWookie avatar Jun 19 '17 12:06 GrumpyWookie

Function in JS is "setUpToggling" >>

if (!topNav){ return; }

GrumpyWookie avatar Jun 19 '17 12:06 GrumpyWookie

Hi @GrumpyWookie, you right, your code fix this issue and another one... I suggested to check if the content is in modal dialog, but my method is less flexible than yours, that's why I updated my last PR #125

Laul0 avatar Jun 19 '17 17:06 Laul0

Hi @GrumpyWookie, the PR was approved and merged. Your issue is solved, isn't it ?

Laul0 avatar Oct 11 '17 09:10 Laul0

@VesaJuvonen could you set Responsive Label plz ?

Laul0 avatar Jan 14 '18 17:01 Laul0