Skip to content

Commit a50614c

Browse files
committed
Bump versions and build
1 parent 7de3647 commit a50614c

File tree

6 files changed

+31
-9
lines changed

6 files changed

+31
-9
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "forms-angular",
33
"author": "Mark Chapman <support@forms-angular.org>",
4-
"version": "0.4.0-beta.1",
4+
"version": "0.4.0-beta.2",
55
"homepage": "https://github.com/forms-angular/forms-angular",
66
"description": "No nonsense forms for the MEAN stack",
77
"keywords": [

dist/forms-angular.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! forms-angular 2014-09-11 */
1+
/*! forms-angular 2014-09-16 */
22
'use strict';
33

44
var formsAngular = angular.module('formsAngular', [
@@ -137,23 +137,22 @@ formsAngular.controller('BaseCtrl', ['$injector', '$scope', '$location', '$timeo
137137
formInstructions.select2.s2query = 'select2' + formInstructions.name.replace(/\./g, '_');
138138
$scope[formInstructions.select2.s2query] = {
139139
allowClear: !mongooseOptions.required,
140-
initSelection: function (element, callback) {
141140

141+
initSelection: function (element, callback) {
142142
function executeCallback() {
143143
var dataVal = $scope.record;
144144
if (dataVal) {
145145
var parts = formInstructions.name.split('.');
146-
while (parts.length > 1 && dataVal) {
146+
while (parts.length > 0 && dataVal) {
147147
dataVal = dataVal[parts.shift()];
148148
}
149149
}
150150
if (dataVal) {
151-
callback(element.select2('data'));
151+
callback(dataVal);
152152
} else {
153153
$timeout(executeCallback);
154154
}
155155
}
156-
157156
$timeout(executeCallback);
158157
},
159158
query: function (query) {

dist/forms-angular.min.js

Lines changed: 2 additions & 2 deletions
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6529,3 +6529,11 @@ form .form-inline > .sub-doc {
65296529
padding-right: 1em;
65306530
}
65316531
}
6532+
.fileupload-form {
6533+
position: relative;
6534+
top: -30px;
6535+
margin-bottom: -30px;
6536+
}
6537+
.fileupload-buttonbar {
6538+
margin-left: 0;
6539+
}

less/forms-angular-with-bs3.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6026,3 +6026,18 @@ form .form-inline > .sub-doc {
60266026
form .tab-content {
60276027
margin-top: 5px;
60286028
}
6029+
@media (max-width: 767px) {
6030+
.navbar-form {
6031+
width: auto;
6032+
border: 0;
6033+
margin-left: 0;
6034+
margin-right: 0;
6035+
padding-top: 0;
6036+
padding-bottom: 0;
6037+
-webkit-box-shadow: none;
6038+
box-shadow: none;
6039+
}
6040+
.navbar-form.navbar-right:last-child {
6041+
margin-right: -15px;
6042+
}
6043+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Mark Chapman <support@forms-angular.org>",
44
"description": "A form builder that sits on top of Angular.js, Twitter Bootstrap, jQuery UI, Angular-UI, Express and Mongoose. Opinionated or what?",
55
"homepage": "http://forms-angular.org",
6-
"version": "0.4.0-beta.1",
6+
"version": "0.4.0-beta.2",
77
"engines": {
88
"node": "0.10.x",
99
"npm": "1.x"

0 commit comments

Comments
 (0)