When I try to hide a tab, only the contents of the tab get hidden, but the tab remains as a href. Is there any way, the tab can be completely hidden as if it were not there?
What is the code that you are using? Not tested but something like this shd work to hide all except the main tab:
AJS.$("a[href='#tab2']").closest("li").hide()
How do you mean "remains as a href"? The html is always going to be in the source so people can get to it if they really wanted to.
Remains as a href as in the link to the tab does not get hidden. I want to hide the link as well. I dont want the tab link to show up until some event has occured like an option has been selected or so.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The above code should hide the link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried document.getElementById('customfield_10018').closest(".tabs-pane").not(".active-pane").hide();
It dint work. Can you please elaborate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Say I want to hide the second tab, this works for me:
AJS.$("a[href='#tab2']").closest("li").hide()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The tab2 is hard-coded there. Is there any way i can make use of variables?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've updated my answer, can you mark it as correct.
var tab = "#tab2";
AJS.$("a[href='" + tab + "']").closest("li").hide()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
The above script how to add screen id, so that conflict will not happen for other screens of the other project.
if I choose "#tab2" it will affect to other project screen tab.
please help me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Can the tab be shown only for a particular role?
Thanks
Abe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Remains as a href as in the link to the tab does not get hidden. I want to hide the link as well. I dont want the tab link to show up until some event has occured like an option has been selected or so
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.