Changeset 825
- Timestamp:
- Mar 25, 2015 5:22:32 PM (10 years ago)
- 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 72 72 if (is_array($this->xml->tree->filelist->file)) { 73 73 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']); 75 75 } 76 76 }else { 77 77 $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']); 79 79 } 80 80 } -
pro-violet-viettel/www/deploy/20150304/assets/js/grid.js
r816 r825 46 46 47 47 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}); 48 49 var divLink = $('<div></div>',{'class':'file-name'}).append(a,inputID,inputName,inputParent,inputType,inputFileUrl); 49 50 var li = $('<li></li>',{'class':'vscell',id:typeid+node.item.id}).append(div, divLink); … … 66 67 } 67 68 68 var nodeClick = function (node, event) { 69 var nodeClick = function (node, event) { 69 70 if (event.ctrlKey) { 70 71 if (!isHightLight(node)) … … 82 83 else { 83 84 clearAllHightLightNode(node); 84 hightlightNode(node); 85 hightlightNode(node); 85 86 } 86 87 } … … 95 96 minetype: $(node).find('> DIV[class^="file-name"] > INPUT[type="hidden"][class^="type"]').val()}; 96 97 97 o.manager.gridNodeDblClick(nodeObj); 98 o.manager.gridNodeDblClick(nodeObj); 98 99 } 99 100 … … 170 171 ******************/ 171 172 var renameInit = function (node) { 172 console.log(node);173 173 var editor = $('<input />',{'class':'rename', type: 'text', value:$(node).text()}); 174 174 $(editor).bind('focusout', function(e){renameCancel(node)}); … … 184 184 $(node).append(editor); 185 185 $(editor).focus(); 186 $(editor).select();186 //$(editor).select(); 187 187 } 188 188 -
pro-violet-viettel/www/deploy/20150304/assets/js/manager.js
r824 r825 65 65 66 66 var toolbarButtons = [btnNewFolder, btnDel, btnCopy, btnCut, btnPaste, btnShare, btnPreview, btnDownload, btnUpload, btnRefresh]; 67 var statusbar = $('DIV#' + o.statusbar); 67 68 68 69 var sendCommand = function (p) { … … 137 138 if (o.invisibledButtons != null) { 138 139 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(); 140 141 } 141 142 } … … 965 966 return searchItemByID(parentID, type); 966 967 } 968 969 this.refreshStatusBar = function (message) { 970 $(statusbar).text(message); 971 } 967 972 968 973 this.initialize = function () {
Note: See TracChangeset
for help on using the changeset viewer.