暂时屏蔽搜索的书签进行删除,编辑操作

This commit is contained in:
luchenqun 2016-11-24 12:57:51 +08:00
parent 967e6200ff
commit f04a48015e
2 changed files with 7 additions and 3 deletions

View File

@ -55,7 +55,7 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
}
$scope.detailBookmark = function(bookmarkId) {
toastr.warning('功能暂未实现。。。', "警告");
}
pubSubService.subscribe('EditCtr.inserBookmarsSuccess', $scope, function(event, params) {
@ -85,7 +85,7 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
.catch((err) => console.log('getBookmarks err', err));
}
// TODO: 我要将编辑按钮固定在容器的右上角
// TODO: 我要将编辑按钮固定在容器的右上角
$(window).resize(function() {
var top = $('.js-segment-navigate').offset().top;
var left = $('.js-segment-navigate').offset().left;

View File

@ -54,6 +54,8 @@ app.controller('searchCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi
}
$scope.delBookmark = function(bookmarkId) {
toastr.warning('暂时不允许搜索的书签进行删除操作', "警告");
return;
var params = {
id: bookmarkId
}
@ -64,13 +66,15 @@ app.controller('searchCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi
});
}
$scope.editBookmark = function(bookmarkId) {
toastr.warning('暂时不允许搜索的书签进行编辑操作', "警告");
return;
pubSubService.publish('bookmarksCtr.editBookmark', {
'bookmarkId': bookmarkId
});
}
$scope.detailBookmark = function(bookmarkId) {
toastr.warning('功能暂未实现。。。', "警告");
}
$scope.search = function() {