diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js index 7c2a9198..57a3570e 100644 --- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js +++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/Form1/Form1Controller.js @@ -71,8 +71,8 @@ globals.plugins.buildFloatingSideMenu({ title: 'Ficha Clinica', scrollspyItems: scrollspyItems, - afterrender: function(){ - + afterrender: function(){ + $('body').scrollspy({ target: '#scrollspyItems' }); diff --git a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/services/Plugins.js b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/services/Plugins.js index 4fca4cde..9f247fc5 100644 --- a/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/services/Plugins.js +++ b/trunk/SiprpWebFichasClinicas/WebContent/static/html/app/services/Plugins.js @@ -286,6 +286,10 @@ if(angular.isFunction(options.afterrender)) { + if(options.scrollspyItems){ + $('body').scrollspy('refresh'); + } + options.afterrender(); } });