Jump to content

Trying to make tabs closed by default in viewticket


nolageek

Recommended Posts

I'm trying to get it so that the top tabs are closed by default in viewticket.tpl since it takes up a lot of screen real estate when first opening the ticket. Once you click Reply/Options/etc.. it would then open. (kind of like Kayako does it.) I've tried a few things but nothing is working. If not this, I'd like it so that "Options" was the default that was open instead of "Reply". I tried a few things but the javascript is making my brain hurt.

 

Any suggestions?

Link to comment
Share on other sites

I'm trying to get it so that the top tabs are closed by default in viewticket.tpl since it takes up a lot of screen real estate when first opening the ticket. Once you click Reply/Options/etc.. it would then open. (kind of like Kayako does it.) I've tried a few things but nothing is working. If not this, I'd like it so that "Options" was the default that was open instead of "Reply". I tried a few things but the javascript is making my brain hurt.

 

Any suggestions?

 

Hmm i was looking into this same thing, not to good with javascript/jquery, but im sure it could be done with that.

 

 

feel free to post here if you figure it out.

Link to comment
Share on other sites

Ok, here is what I have so far. It's a little bit of a hack but it works albeit not perfect.

 

Find this:

selectedTab = "tab0";
$("#tab0").addClass("tabselected");
$("#tab0box").css("display","");

 

Change to this:

selectedTab = "tabXX";
$("#tabXX").addClass("tabselected");
$("#tabXXbox").css("display","none");

 

 

 

Basically you're creating a new dummy tab and setting it to be selected and the box to default to being hidden.

Edited by nolageek
Link to comment
Share on other sites

Ok, here is what I have so far. It's a little bit of a hack but it works albeit not perfect.

 

Find this:

selectedTab = "tab0";
$("#tab0").addClass("tabselected");
$("#tab0box").css("display","");

 

Change to this:

selectedTab = "tabXX";
$("#tabXX").addClass("tabselected");
$("#tabXXbox").css("display","none");

 

 

 

Basically you're creating a new dummy tab and setting it to be selected and the box to default to being hidden.

 

Can you provide a screenshot of how it looks?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated