Ignore:
Timestamp:
Mar 25, 2015 2:45:22 PM (10 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/20150304/assets/js/manager.js

    r816 r823  
    3333                if (o.datasource == undefined)
    3434                    o.datasource = 'ajax';
     35               
     36                if (o.invisibledButtons == undefined)
     37                        o.invisibledButtons = null;
    3538
    3639                o.host = o.host + 'ajax/';
     
    6164                var btnRefresh = $('#' + o.toolsbar + ' > DIV.btn-group.control > #btnRefresh');
    6265
     66                var toolbarButtons = [btnNewFolder, btnDel, btnCopy, btnCut, btnPaste, btnShare, btnPreview, btnDownload, btnUpload, btnRefresh];
     67               
    6368                var sendCommand = function (p) {
    6469                    if (p.postdata == undefined)
     
    129134                    maxWidth = getDirTreeMaxWidth();
    130135                    $(o.tree).height(dirTreeHeight - 5);
     136                   
     137                    if (o.invisibledButtons != null) {
     138                        for (var i = 0; i < o.invisibledButtons.length; i++) {
     139                                $('#' + o.toolsbar + ' > DIV.btn-group.basic > #' + o.invisibledButtons[i]).hide();
     140                        }
     141                    }
    131142                }
    132143
Note: See TracChangeset for help on using the changeset viewer.