Changeset 825


Ignore:
Timestamp:
Mar 25, 2015 5:22:32 PM (10 years ago)
Author:
dungnv
Message:
 
Location:
pro-violet-viettel/www/deploy/20150304
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/20150304/application/modules/ajax/controllers/privatecontent.php

    r813 r825  
    7272                        if (is_array($this->xml->tree->filelist->file)) {
    7373                                foreach($this->xml->tree->filelist->file as $key=>$value){
    74                                         $aryFiles[] = array('thumbnail' => $value->_param['thumbnail'],'fileurl' => $value->_param['fileurl'], 'id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype']);
     74                                        $aryFiles[] = array('thumbnail' => $value->_param['thumbnail'],'fileurl' => $value->_param['fileurl'], 'id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype'], 'size' => $value->_param['size']);
    7575                                }
    7676                        }else {
    7777                                $file = $this->xml->tree->filelist->file;
    78                                 $aryFiles[] = array('thumbnail' => $value->_param['thumbnail'],'fileurl' => $value->_param['fileurl'],'id' => $file->_param['id'], 'name' => $file->_value,'parentID' => $file->_param['parentid'] == -1 ? 0:$file->_param['parentid'], 'minetype' => $file->_param['filetype']);
     78                                $aryFiles[] = array('thumbnail' => $value->_param['thumbnail'],'fileurl' => $value->_param['fileurl'],'id' => $file->_param['id'], 'name' => $file->_value,'parentID' => $file->_param['parentid'] == -1 ? 0:$file->_param['parentid'], 'minetype' => $file->_param['filetype'], 'size' => $file->_param['size']);
    7979                        }
    8080                }
  • pro-violet-viettel/www/deploy/20150304/assets/js/grid.js

    r816 r825  
    4646                               
    4747                                var a = $('<a></a>',{id: node.item.id,href: '#',rel: node.item.name,text: node.item.name});
     48                                //var nameplace = $('<div></div>',{id: node.item.id,rel: node.item.name,text: node.item.name});
    4849                                var divLink = $('<div></div>',{'class':'file-name'}).append(a,inputID,inputName,inputParent,inputType,inputFileUrl);                           
    4950                                var li = $('<li></li>',{'class':'vscell',id:typeid+node.item.id}).append(div, divLink);
     
    6667                        }
    6768                       
    68                         var nodeClick = function (node, event) {
     69                        var nodeClick = function (node, event) {                               
    6970                                if (event.ctrlKey) {
    7071                                        if (!isHightLight(node))
     
    8283                                else {
    8384                                        clearAllHightLightNode(node);
    84                                         hightlightNode(node);
     85                                        hightlightNode(node);                                   
    8586                                }
    8687                        }
     
    9596                                                        minetype: $(node).find('> DIV[class^="file-name"] > INPUT[type="hidden"][class^="type"]').val()};
    9697                               
    97                                 o.manager.gridNodeDblClick(nodeObj);                           
     98                                o.manager.gridNodeDblClick(nodeObj);
    9899                        }
    99100                       
     
    170171                         ******************/
    171172                        var renameInit = function (node) {                             
    172                                 console.log(node);
    173173                                var editor = $('<input />',{'class':'rename', type: 'text', value:$(node).text()});
    174174                                $(editor).bind('focusout', function(e){renameCancel(node)});
     
    184184                                $(node).append(editor);
    185185                                $(editor).focus();
    186                                 $(editor).select();
     186                                //$(editor).select();
    187187                        }
    188188                       
  • pro-violet-viettel/www/deploy/20150304/assets/js/manager.js

    r824 r825  
    6565
    6666                var toolbarButtons = [btnNewFolder, btnDel, btnCopy, btnCut, btnPaste, btnShare, btnPreview, btnDownload, btnUpload, btnRefresh];
     67                var statusbar = $('DIV#' + o.statusbar);
    6768               
    6869                var sendCommand = function (p) {
     
    137138                    if (o.invisibledButtons != null) {
    138139                        for (var i = 0; i < o.invisibledButtons.length; i++) {
    139                                 $('#' + o.toolsbar + ' > DIV.btn-group.basic > #' + o.invisibledButtons[i]).hide();
     140                                $('#' + o.invisibledButtons[i]).hide();
    140141                        }
    141142                    }
     
    965966                    return searchItemByID(parentID, type);
    966967                }
     968               
     969                this.refreshStatusBar = function (message) {
     970                        $(statusbar).text(message);
     971                }
    967972
    968973                this.initialize = function () {
Note: See TracChangeset for help on using the changeset viewer.