Page 1 of 1

V3 alternative to #nuMenu remove via nuLoadThis

Posted: Fri Feb 19, 2016 5:54 pm
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)

Re: V3 alternative to #nuMenu remove via nuLoadThis

Posted: Mon Feb 22, 2016 10:48 pm
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