Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only 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: 2813
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

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
And you can use nuLoadEdit() instead of nuLoadThis. (http://wiki.nubuilder.net/nubuilderv3/i ... Edit.28.29

Steven
You do not have the required permissions to view the files attached to this post.
Post Reply