Changeset 12 for pro-bachkim-filespace


Ignore:
Timestamp:
Jun 5, 2014 5:46:37 PM (11 years ago)
Author:
dungnv
Message:
 
Location:
pro-bachkim-filespace/sourcecode
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/application/modules/ajax/controllers/privatecontent.php

    r11 r12  
    5858                $delAllChild = $this->input->post('delallchild',TRUE);
    5959               
    60                 $aryChild = $this->objDirectory->getAllChild($dirID);
     60                $aryChild = $this->objDirectory->getAllDirChild($dirID);
     61                $aryResult = array('isSuccess' => TRUE);
     62               
    6163                echo json_encode($aryChild);
    6264        }
  • pro-bachkim-filespace/sourcecode/application/modules/ajax/models/directory_model.php

    r11 r12  
    127127                $aryDirChild = $this->getAllDirChild($dirID);
    128128               
     129                foreach ($aryDirChild as $key => $child) {
     130                       
     131                }
     132               
    129133        }
    130134       
  • pro-bachkim-filespace/sourcecode/assets/js/vsfilemanager.js

    r11 r12  
    184184                                var dirName = prompt("Please enter new directory name", "");
    185185                                var script = 'ajax/privatecontent/createdir';
    186                                 sendCommand({
    187                                         script: script,
    188                                         postdata:{parentID:pid,name:dirName},
    189                                         callbackSuccess: function (parsedData) {createNode({
    190                                                                                 id: parsedData.id,
    191                                                                                 name: parsedData.name,
    192                                                                                 curentNode: c,
    193                                                                                 hidden: false,
    194                                                                                 addToJSONData:true});
    195                                                                         }
    196                                 });
     186
     187                                if (dirName != null && dirName.length != 0) {
     188                                        sendCommand({
     189                                                script: script,
     190                                                postdata:{parentID:pid,name:dirName},
     191                                                callbackSuccess: function (parsedData) {createNode({
     192                                                                                        id: parsedData.id,
     193                                                                                        name: parsedData.name,
     194                                                                                        curentNode: c,
     195                                                                                        hidden: false,
     196                                                                                        addToJSONData:true});
     197                                                                                }
     198                                        });
     199                                }
    197200                        }
    198201
     
    316319
    317320                        return this.initialize();
     321                },
     322               
     323                violetcontextmenu: function (o) {
     324                        if( !o ) var o = {};
     325                        if( o.groups = undefined ) o.groups = {{id:0, disabled:false}}; /*{{id:0,disabled:false}}*/
     326                        if( o.items = undefined ) o.items = null;/*{{id:0,groupID:0,name:'', trigger:e ,disabled:false}}*/
     327                        if( o.width = undefined ) o.width = null;
     328                        if( o.itemHeight = undefined ) o.itemHeight = null;
     329                       
     330                        /*var buildGroup = function () {
     331                               
     332                                if (o.groups == null) return false;
     333                               
     334                                var strHTML = '<div class="contextmenu hidden">';
     335                               
     336                                for (var i = 0; i < o.groups.length; i++) {
     337                                        if (i != 0) strHTML += '<div class="contextmenu separated"></div>';
     338                                        strHTML += buildItem (o.groups[i]);
     339                                }
     340                               
     341                                strHTML += '</div>';
     342                        }
     343                       
     344                        var buildItem = function (g) {
     345                                var strHTML = '';
     346                               
     347                                for(var i = 0; i < o.items.length; i++) {
     348                                        if (o.items[i].groupID == g.id)
     349                                                strHTML = '<div class="contextmenu item">' + o.items[i].name + '</div>';
     350                                }
     351                               
     352                                return strHTML;
     353                        }*/
     354                       
     355                        var buildMenu = function () {
     356                                if (o.groups == null) return false;
     357                               
     358                               
     359                        }
    318360                }
    319361        });
  • pro-bachkim-filespace/sourcecode/directory.db

    r11 r12  
    151515,Dir 2.1.1,14
    161616,Dir 1.1.1.2,4
     1717,Dir 1.1.3,3
     1825,Dir 5.1,10
Note: See TracChangeset for help on using the changeset viewer.