Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Solve #1463 , Record user's action history in smart notebook page (#1469
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zhiqiang authored Dec 7, 2017
1 parent 504bb7e commit 54e13bb
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ NavCtrl.$inject = [
'arrayOrderingSrv',
'searchService',
'TRASH_FOLDER_ID',
'conf'
'conf',
'$route'
];

function NavCtrl($scope, $rootScope, $http, $routeParams, $location,
baseUrlSrv, arrayOrderingSrv,
searchService, TRASH_FOLDER_ID, conf) {
baseUrlSrv, arrayOrderingSrv, searchService,
TRASH_FOLDER_ID, conf, $route) {
var vm = this;
vm.arrayOrderingSrv = arrayOrderingSrv;
vm.isActive = isActive;
Expand Down Expand Up @@ -58,6 +59,7 @@ function NavCtrl($scope, $rootScope, $http, $routeParams, $location,
$http.get(baseUrlSrv.getSmartApiRoot() + conf.restapiProtocol + '/note/info').success(
function(data, status, headers, config) {
$rootScope.note = data;
$route.reload();
}).error(
function(data, status, headers, config) {
console.log('Error %o %o', status, data.message);
Expand Down

0 comments on commit 54e13bb

Please sign in to comment.