1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- angular.module('push')
- .controller('CloudFolderListCtrl', function ($scope, CloudFolderService, $timeout, ModelService) {
- if($scope.app){
- $scope.setStatusBar(0);
- }
- $scope.search = {searchkey: ""};
- //初始化云文件夹列表
- var initCloudFolderList = function () {
- CloudFolderService.getCloudFolderList().then(function (response) {
- $scope.cloudFolderList = response.folderlist;
- ModelService.setLocalCloudFolderList($scope.cloudFolderList);
- }, function () {
- })
- };
- initCloudFolderList();
- //新建云文件夹
- $scope.showCloudFolder = function () {
- $scope.go("cloudFolderCreate")
- };
- //查询云文件夹
- $scope.showCloudContent = function (cloudFolder) {
- $scope.go("cloudFolderDetail", {tempclofol: cloudFolder})
- };
- //跳转云文件夹废纸篓
- $scope.goWastePaper = function () {
- };
- //查找分类
- $scope.searchClassification = function () {
- $timeout(function () {
- $(".searchClassification").css("width", "88%");
- $(".category_search_icon").css("left", "5%");
- $(".new_category_search").animate({paddingLeft: "10%"});
- $(".new_category_search").css("text-align", "left");
- $(".searchClassDelete").css("display", "inline-block");
- }, 100);
- };
- //取消查询
- $scope.searchClassDelete = function () {
- $(".searchClassification").css("width", "100%");
- $(".category_search_icon").animate({left: "39%"});
- $(".new_category_search").animate({paddingLeft: "0%"});
- $(".new_category_search").css("text-align", "center");
- $(".searchClassDelete").css("display", "none");
- $scope.search.searchkey = "";
- };
- });
|