rsanchez
2014-10-16 4d18a46ee3ada751517f9bf767d5057a3bf5eb9e
securis/src/main/resources/static/js/admin.js
....@@ -38,7 +38,9 @@
3838 '$store',
3939 '$L',
4040 function($scope, $http, toaster, Catalogs, $store, $L) {
41
- $scope.showForm = false;
41
+ $store.set('location', '/admin');
42
+
43
+ $scope.showForm = false;
4244 $scope.isNew = false;
4345 $scope.formu = {};
4446 $scope.catalogIndex = 0;
....@@ -145,8 +147,6 @@
145147 $('select').val(null);
146148 $scope.$parent.formu = {};
147149
148
- console.log("Refs for new form:");
149
- console.log($scope.refs);
150150 var fields = Catalogs.getMetadata().fields;
151151 fields.forEach(function(field) {
152152 if (!field.listingOnly) $scope.$parent.formu[field.name] = null;