diff --git a/app/js/controller.js b/app/js/controller.js index 99b02425..8eb76cd1 100644 --- a/app/js/controller.js +++ b/app/js/controller.js @@ -782,8 +782,8 @@ angular.module('reachRabbitApp.influencer.controller', ['reachRabbitApp.service' }); } ]) - .controller('InfluencerProfileController', ['$scope', '$window', '$stateParams', 'AccountService', 'NcAlert', 'UserProfile', 'validator', 'util', - function ($scope, $window, $stateParams, AccountService, NcAlert, UserProfile, validator, util) { + .controller('InfluencerProfileController', ['$scope', '$window', '$stateParams', 'AccountService', 'NcAlert', 'UserProfile', 'validator', 'util', 'smoothScroll', + function ($scope, $window, $stateParams, AccountService, NcAlert, UserProfile, validator, util, smoothScroll) { util.warnOnExit($scope); $scope.showStickyToolbar = !_.isNil($stateParams.showToolbar); $scope.form = {}; @@ -800,6 +800,10 @@ angular.module('reachRabbitApp.influencer.controller', ['reachRabbitApp.service' value: 'NotSpecified' }]; + if($stateParams.showVerify) { + var element = document.getElementById('verify'); + smoothScroll(element); + } $scope.isValidate = function (model, error) { if (error === 'required' && model.$name === 'profilePicture') { return $scope.form.$submitted; diff --git a/app/js/route.js b/app/js/route.js index 6198adb2..4a450459 100755 --- a/app/js/route.js +++ b/app/js/route.js @@ -219,7 +219,7 @@ angular.module('reachRabbitApp.influencer.routes', ['ui.router']) controller: 'InfluencerProfileController' }) .state('influencer-profile-published', { - url: '/influencer-profile-published?showToolbar', + url: '/influencer-profile-published?showToolbar&showVerify', templateUrl: 'view/influencer-profile-published.html', controller: 'InfluencerProfileController' }) diff --git a/app/view/influencer-profile.html b/app/view/influencer-profile.html index fcae595f..14a3f785 100644 --- a/app/view/influencer-profile.html +++ b/app/view/influencer-profile.html @@ -170,7 +170,7 @@