Skip to content

Commit 2c95803

Browse files
committed
Chore(build)
1 parent 5b7768e commit 2c95803

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

dist/fng-reports.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
/*! forms-angular 2014-10-14 */
1+
/*! forms-angular 2015-02-26 */
22
'use strict';
33

4-
formsAngular.controller('AnalysisCtrl', ['$filter', '$scope', '$http', '$location', 'routingService',
5-
function ($filter, $scope, $http, $location, routingService) {
4+
formsAngular.controller('AnalysisCtrl', ['$filter', '$scope', '$http', '$location', 'cssFrameworkService', 'routingService',
5+
function ($filter, $scope, $http, $location, cssFrameworkService, routingService) {
66
/*jshint newcap: false */
77
var firstTime = true,
88
pdfPlugIn = new ngGridPdfExportPlugin({inhibitButton: true}),
99
csvPlugIn = new ngGridCsvExportPlugin({inhibitButton: true});
1010
/*jshint newcap: true */
1111

1212
angular.extend($scope, routingService.parsePathFunc()($location.$$path));
13+
1314
$scope.reportSchema = {};
1415
$scope.gridOptions = {
1516
columnDefs: 'reportSchema.columnDefs',
@@ -164,6 +165,11 @@ formsAngular.controller('AnalysisCtrl', ['$filter', '$scope', '$http', '$locatio
164165
$scope.report = data.report;
165166
$scope.reportSchema = data.schema;
166167
$scope.reportSchema.title = $scope.reportSchema.title || $scope.modelName;
168+
$scope.reportSchema.title = $scope.reportSchema.title.replace(/\|.+?\|/g, function (match) {
169+
var param = match.slice(1, -1);
170+
var isParamTest = /\((.+)\)/.exec(param);
171+
return isParamTest ? $scope.reportSchema.params[isParamTest[1]].value : '';
172+
});
167173

168174
if (firstTime) {
169175
firstTime = false;
@@ -205,7 +211,7 @@ formsAngular.controller('AnalysisCtrl', ['$filter', '$scope', '$http', '$locatio
205211
type: thisPart.type || 'text',
206212
required: true,
207213
add: thisPart.add || undefined,
208-
size: thisPart.size || 'small'
214+
size: thisPart.size || (cssFrameworkService.frameWork === 'bs3' ? 'large' : 'medium')
209215
});
210216
if (thisPart.type === 'select') {
211217
// TODO: Remove when select and select2 is modified during the restructure

0 commit comments

Comments
 (0)