Skip to content

Commit eedfc93

Browse files
committed
chore(build)
1 parent 8047871 commit eedfc93

File tree

6 files changed

+30
-17
lines changed

6 files changed

+30
-17
lines changed

dist/forms-angular.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ var fng;
914914
newElement += ' fng-opt-' + prop + '="' + options[prop].toString().replace(/"/g, '"') + '"';
915915
}
916916
}
917-
newElement += '></' + directiveName + '>';
917+
newElement += 'ng-model="' + info.name + '"></' + directiveName + '>';
918918
result += newElement;
919919
callHandleField = false;
920920
}
@@ -1141,17 +1141,19 @@ var fng;
11411141
/*@ngInject*/
11421142
function titleCase() {
11431143
return function (str, stripSpaces) {
1144-
var value = str.replace(/(_|\.)/g, ' ').replace(/[A-Z]/g, ' $&').trim().replace(/\w\S*/g, function (txt) {
1145-
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
1146-
});
1147-
if (stripSpaces) {
1148-
value = value.replace(/\s/g, '');
1149-
}
1150-
else {
1151-
// lose double spaces
1152-
value = value.replace(/\s{2,}/g, ' ');
1144+
if (str) {
1145+
str = str.replace(/(_|\.)/g, ' ').replace(/[A-Z]/g, ' $&').trim().replace(/\w\S*/g, function (txt) {
1146+
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
1147+
});
1148+
if (stripSpaces) {
1149+
str = str.replace(/\s/g, '');
1150+
}
1151+
else {
1152+
// lose double spaces
1153+
str = str.replace(/\s{2,}/g, ' ');
1154+
}
11531155
}
1154-
return value;
1156+
return str;
11551157
};
11561158
}
11571159
filters.titleCase = titleCase;
@@ -3215,6 +3217,7 @@ var fng;
32153217
$scope.handleHttpError = handleError($scope);
32163218
$scope.cancel = function () {
32173219
angular.copy(ctrlState.master, $scope.record);
3220+
$scope.$broadcast('fngCancel', $scope);
32183221
// Let call backs etc resolve in case they dirty form, then clean it
32193222
$timeout($scope.setPristine);
32203223
};

dist/forms-angular.min.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/forms-angular.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/forms-angular-with-bs2.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6551,3 +6551,9 @@ form .form-inline > .sub-doc {
65516551
.fileupload-buttonbar {
65526552
margin-left: 0;
65536553
}
6554+
@media (max-width: 767px) {
6555+
form .schema-head,
6556+
form .schema-foot {
6557+
padding: 5px 15px;
6558+
}
6559+
}

less/forms-angular-with-bs3.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6094,4 +6094,8 @@ form .tab-content {
60946094
.navbar-form.navbar-right:last-child {
60956095
margin-right: -15px;
60966096
}
6097+
form .schema-head,
6098+
form .schema-foot {
6099+
padding: 5px 15px;
6100+
}
60976101
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"karma-phantomjs-launcher": "~0.1.0",
7979
"matchdep": "~0.3",
8080
"mocha": "~2",
81-
"run-sequence": "^1.0.2"
81+
"run-sequence": "^1.0.2",
82+
"uglify-js2": "~2.1.11"
8283
},
8384
"license": "MIT"
8485
}

0 commit comments

Comments
 (0)