[fusion-commits] r1777 - branches/fusion-1.1/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Feb 6 16:04:36 EST 2009
Author: madair
Date: 2009-02-06 16:04:36 -0500 (Fri, 06 Feb 2009)
New Revision: 1777
Modified:
branches/fusion-1.1/lib/ApplicationDefinition.js
Log:
re #210: adding link templates for search def
Modified: branches/fusion-1.1/lib/ApplicationDefinition.js
===================================================================
--- branches/fusion-1.1/lib/ApplicationDefinition.js 2009-02-05 14:13:00 UTC (rev 1776)
+++ branches/fusion-1.1/lib/ApplicationDefinition.js 2009-02-06 21:04:36 UTC (rev 1777)
@@ -986,6 +986,14 @@
this.parameters.push(json.Parameter[i]['@name']);
}
}
+ this.reports = [];
+ if (json.Report instanceof Array) {
+ for (var i=0; i<json.Report.length; i++) {
+ var label = json.Report[i].Label[0]
+ var link = json.Report[i].Link[0]
+ this.reports.push({'label':label, 'link':link});
+ }
+ }
var rule;
if (json.SearchAnd instanceof Array) {
this.rule = new Fusion.Lib.ApplicationDefinition.SearchRule('AND');
More information about the fusion-commits
mailing list