returning the fund as an href which links to view fund page
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 22 Apr 2008 00:58:31 +0000 (00:58 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 22 Apr 2008 00:58:31 +0000 (00:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@9420 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_funding_source.html

index 5814a94..9a18d18 100644 (file)
@@ -76,7 +76,8 @@
             req.send();
             fundCache[fundId] = req.recv().content();
         }
-        return fundCache[fundId].name()
+        var name = fundCache[fundId].name();
+        return '<a href="${c.oils.acq.prefix.value}/fund/view/'+fundId+'">'+name+'</a>';
     }
 
     /** builds the credits grid ----- */
@@ -98,7 +99,7 @@
         fsCreditGrid.isLoaded = true;
     }
 
-    /** builds the credits grid ----- */
+    /** builds the allocations grid ----- */
     function loadAllocationGrid() {
         if(fsAllocationGrid.isLoaded) return;
         var store = new dojo.data.ItemFileReadStore({data:acqfa.toStoreData(fundingSource.allocations())});