Commit 7115542f authored by Evren Kutar's avatar Evren Kutar

v0.0.3.1 formset float field fix

parent c4db7f46
...@@ -41,6 +41,9 @@ form_generator.factory('Generator', function ($http, $q, $log, $location, $modal ...@@ -41,6 +41,9 @@ form_generator.factory('Generator', function ($http, $q, $log, $location, $modal
return formObject; return formObject;
}; };
generator.prepareFormItems = function(scope) { generator.prepareFormItems = function(scope) {
/**
* prepareforms checks input types and convert if necessary
*/
angular.forEach(scope.schema.properties, function (k, v) { angular.forEach(scope.schema.properties, function (k, v) {
// check if type is date and if type date found change it to string // check if type is date and if type date found change it to string
...@@ -61,7 +64,7 @@ form_generator.factory('Generator', function ($http, $q, $log, $location, $modal ...@@ -61,7 +64,7 @@ form_generator.factory('Generator', function ($http, $q, $log, $location, $modal
}); });
} }
if (k.type == 'int') { if (k.type == 'int' || 'float') {
k.type = 'number'; k.type = 'number';
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment