Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

V3 alternative to #nuMenu remove via nuLoadThis

Post Reply
mobilemcclintic
Posts: 54
Joined: Fri Oct 23, 2015 12:34 am

V3 alternative to #nuMenu remove via nuLoadThis

Unread post by mobilemcclintic »

Good morning,
I was wondering if V3 has an alternative to the below code for V2:

Code: Select all

if(access_level() != 'globeadmin'){

   function nuLoadThis(){
      $('#nuMenu0').remove();  //--eg. the first tab
   }

}
I am setting permissions on specific objects, but in some instances, I have a complete tab that should be hidden (calculations or reviews of information that normal people shouldn't see)
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: V3 alternative to #nuMenu remove via nuLoadThis

Unread post by admin »

mobilemcclintic,

The IDs of the tabs are different but you can find out their names by pushing F12 in your browser, clicking on the inspect icon element (highlighted in yellow) and putting your cursor over the element in question.
Capture.PNG
Capture.PNG (82.01 KiB) Viewed 3555 times
And you can use nuLoadEdit() instead of nuLoadThis. (http://wiki.nubuilder.net/nubuilderv3/i ... Edit.28.29

Steven
Post Reply