diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js index f56f57c6..c90ddf81 100644 --- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js +++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js @@ -19,6 +19,8 @@ $scope.add = function(selected){ + globals.plugins.buildFloatingSideMenu(); + $scope.editForm.$reset(); $scope.editing = angular.copy(selected); @@ -27,17 +29,12 @@ $scope.editing.antecentesOcupacionaisAcidentesTrabalho = []; $scope.editing.antecentesOcupacionaisDoencasProfissionais = []; $scope.editing.antecentesOcupacionaisActividadesAnteriores = []; - - globals.plugins.buildSideMenu({ - onItemClick: function(e){ - - $('#modalDocumentosTrabalhador').modal('show'); - } - }); }; $scope.edit = function(selected){ + globals.plugins.buildFloatingSideMenu(); + $timeout(function () { $scope.editForm.$reset(); @@ -53,13 +50,6 @@ $scope.editing = angular.copy($scope.selected); }); - globals.plugins.buildSideMenu({ - onItemClick: function(e){ - - $('#modalDocumentosTrabalhador').modal('show'); - } - }); - }, 0); //listeners @@ -100,7 +90,7 @@ if(response.success && complete) { - globals.plugins.hideSideMenu(); + globals.plugins.hideFloatingSideMenu(); $scope.$parent.loadModule({Controller: 'Search'}, function(className, scope, isNewModule){ @@ -193,7 +183,7 @@ className: 'btn-danger', callback: function() { - globals.plugins.hideSideMenu(); + globals.plugins.hideFloatingSideMenu(); $scope.$parent.loadModule({Controller: 'Search'}, function(className, scope, isNewModule){ @@ -208,7 +198,7 @@ $scope.save(false); - globals.plugins.hideSideMenu(); + globals.plugins.hideFloatingSideMenu(); $scope.$parent.loadModule({Controller: 'Search'}, function(className, scope, isNewModule){ @@ -221,7 +211,7 @@ }); }; - $scope.$on('afterrender', function(event, args){ - + $scope.$on('afterrender', function(event, args){ + }); }); \ No newline at end of file diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1View.html b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1View.html index 4a75258f..d2954474 100644 --- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1View.html +++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1View.html @@ -20,7 +20,7 @@