Re: [Dev] Need help in customizing a script

2015-10-22 Thread Shavindri Dissanayake
Thank you Dakshika, this is great! Thanks & Regards Shavindri Dissanayake Technical Writer WSO2 Inc. lean.enterprise.middleware On Thu, Oct 22, 2015 at 2:13 PM, Mariangela Hills wrote: > Hi Dakshika, > > Awesome, it works now! Thanks loads for taking the time to come up

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Dakshika Jayathilaka
Hi, I fixed your issue. please check jQuery(document).ready(function() { jQuery(".wiki-content a").each(function (){ if(jQuery(this).context.hash == ''){ jQuery(this).attr("target", "_blank"); } }); }); Regards, *Dakshika Jayathilaka* PMC Member &

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Mariangela Hills
Hi Dakshika, Awesome, it works now! Thanks loads for taking the time to come up with a solution! Regards, Mariangela *Mariangela Hills* Senior Technical Writer - WSO2, Inc. http://wso2.com Committer and PMC member - Apache Stratos email:mariang...@wso2.com | mobile: +94 773 500185 On Thu, Oct

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Mariangela Hills
Hi Imesh, The following is the actual page that I was planning on adding this script to. However, now, instead of navigating the user off to separate pages I have pulled the content from those pages into the main page, so that the respective sub content will appear within the main page when the

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Imesh Gunaratne
Mari, can you please share a link to this page to have a look. Thanks On Thu, Oct 22, 2015 at 2:16 PM, Shavindri Dissanayake wrote: > Thank you Dakshika, this is great! > > Thanks & Regards > Shavindri Dissanayake > Technical Writer > > WSO2 Inc. >

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Jerad Rutnam
Hi Mari, I think it's a better approach for a simple content like this. +1 for keeping the contents on same page and move page to selected step. Cheers! Jerad On Fri, Oct 23, 2015 at 5:35 AM, Mariangela Hills wrote: > Hi Imesh, > > The following is the actual page that I

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Imesh Gunaratne
Thanks Mari! It looks good. A quick thought: the blue colour border that we have used, for me its too contrasting. WDYT? Thanks On Fri, Oct 23, 2015 at 5:35 AM, Mariangela Hills wrote: > Hi Imesh, > > The following is the actual page that I was planning on adding this

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Shavindri Dissanayake
Hi Imesh, I put that border, sorry my bad actually (was trying to match the header color). Shall remove it :) Thanks & Regards Shavindri Dissanayake Technical Writer WSO2 Inc. lean.enterprise.middleware On Fri, Oct 23, 2015 at 7:50 AM, Imesh Gunaratne wrote: > Thanks Mari! It

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Mariangela Hills
*@Imesh & Jerad* - Thanks for your feedback! Imesh, we will change the border color to a more subtle color. *@Shavi* - Shavi, there is no need to say sorry! Even though it can look a bit contrasting it matches the header. Regards, Mariangela *Mariangela Hills* Senior Technical Writer - WSO2,

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Imesh Gunaratne
On Fri, Oct 23, 2015 at 10:49 AM, Mariangela Hills wrote: > > *@Shavi* - Shavi, there is no need to say sorry! Even though it can look > a bit contrasting it matches the header. > > Yes definitely +1 for doing creative stuff!! I just conveyed my thoughts on the colour :-)

Re: [Dev] Need help in customizing a script

2015-10-22 Thread Mariangela Hills
Hi Imesh, Dakshika and Nisrin, Thanks for all your feedback and help! *@Dakshika* - I tried the script but it did not work, because when I used it all the links were opening in the same page. *@Imesh -* Thanks for the info! *@Nisrin* - When a user is new to docs, they will tend to always click

Re: [Dev] Need help in customizing a script

2015-10-21 Thread Imesh Gunaratne
Hi Mari, Opening a new tab or a new browser window is not recommended. Most of the browsers block this by default due to security reasons. May be we need to think of a different approach. Thanks On Thu, Oct 22, 2015 at 6:38 AM, Mariangela Hills wrote: > Hi, > > When

Re: [Dev] Need help in customizing a script

2015-10-21 Thread Dakshika Jayathilaka
Hi All, IMO open a webpage in new tab or page is recommended depending on your use case. AFAIK giving a pop up link will block by browser due to security reason. So what you can do is, append simple class to "a"(anchor) to prevent all links opening in new page. Use below code snippet for Pages

Re: [Dev] Need help in customizing a script

2015-10-21 Thread Dakshika Jayathilaka
Hi Mari, I have notice that you are using target="_blank" for internal page links as wel. remove that attribute from links to navigate within page. Step 2 - Setup the WSO2 Complex Event Processor (CEP) *Dakshika Jayathilaka* PMC Member & Committer of Apache Stratos Senior Software Engineer

[Dev] Need help in customizing a script

2015-10-21 Thread Mariangela Hills
Hi, When working with the Wiki (Confluence) docs, there are times when we have to point off to sub-pages within a main set of instructions, so that the main page does not get too bulky. This means that when a user clicks these links, they will be redirected to those new pages within the same tab.

Re: [Dev] Need help in customizing a script

2015-10-21 Thread Nisrin Sheriff
Hi Mari, Wouldn't this result in too many tabs opening up as there will be a new tab opening whenever a users clicks on a link. With how it is now, if a user wants to view the linked section in a new tab, they can always right click and then click *Open Link in New Tab*/*Open Link in New Window*