Author: bigosmallm
Date: Tue Apr  7 18:15:20 2015
New Revision: 1671907

URL: http://svn.apache.org/r1671907
Log:
Add support for anchor tags in the showcase.

Modified:
    flex/site/trunk/content/js/showcase.js

Modified: flex/site/trunk/content/js/showcase.js
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/js/showcase.js?rev=1671907&r1=1671906&r2=1671907&view=diff
==============================================================================
--- flex/site/trunk/content/js/showcase.js (original)
+++ flex/site/trunk/content/js/showcase.js Tue Apr  7 18:15:20 2015
@@ -1,5 +1,6 @@
 /* helper function to create the showcase
  *  props:
+ *  index: index to be used as an anchor tag
  *  title: app title
  *  author: string
  *  description: app description
@@ -15,7 +16,7 @@ function addShowcaseEntry(props) {
     var i;
 
     // TITLE
-    var entry = '<div class="headline"><h4>' + props.title + '</h4></div>' +
+    var entry = '<a href="' + props.index + '"><div class="headline"><h4>' + 
props.title + '</h4></div></a>' +
         ' <ul class="arrow_list">' +
         '<li><span class="sc_header">Summary:</span>&nbsp;&nbsp;' + 
props.description + '  </li>' +
         '<li><span class="sc_header">Author:</span>&nbsp;&nbsp;' + 
props.author + ' </li>';
@@ -115,6 +116,7 @@ function processShowcaseXML(xmlDoc) {
         }
 
         addShowcaseEntry({
+                       index: i,
             title: item.getAttribute("title"),
             description: 
item.getElementsByTagName("description")[0].textContent,
             author: item.getAttribute("author"),


Reply via email to