Changeset 682


Ignore:
Timestamp:
Dec 29, 2014 2:13:57 PM (11 years ago)
Author:
quyenla
Message:

tpro-violet-viettel/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/assets/js/manager.js

    r674 r682  
    425425                                className: "btn btn-primary",
    426426                                callback: function () {
    427                                   if (o.oGrid)
    428                             o.oGrid.reloadGrid();
     427                                 alert ("123");
    429428                                }
    430429                            },
  • pro-violet-viettel/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php

    r289 r682  
    158158
    159159  public function executeDir() {
     160      echo "123";die();
    160161        $this->catId = $this->getRequestParameter('id', -1);
    161162    $userId = $this->getRequestParameter('userid');
  • pro-violet-viettel/sourcecode/application/config/config.php

    r662 r682  
    409409$config['6'] = 70000;
    410410$config['12'] = 130000;
     411$config['api_url'] = 'http://api.violet.vn/';
    411412
    412413/* End of file config.php */
  • pro-violet-viettel/sourcecode/application/config/database.php

    r532 r682  
    4646*/
    4747
    48 $active_group = 'default';
     48$active_group = 'default';  
    4949$active_record = TRUE;
    5050
    5151$db['default']['hostname'] = 'mysql:host=127.0.0.1';
    52 $db['default']['username'] = 'sbg';//sbg
    53 $db['default']['password'] = 'sbg~~!!@@123';//sbg~~!!@@123
    54 $db['default']['database'] = 'sbg';
     52$db['default']['username'] = 'root';//sbg
     53$db['default']['password'] = 'Quyenhue@123';//sbg~~!!@@123
     54$db['default']['database'] = 'violet-viettel';
    5555$db['default']['dbdriver'] = 'pdo';
    5656$db['default']['dbprefix'] = '';
     
    8282$db['default']['stricton'] = FALSE;*/
    8383
     84
    8485/* End of file database.php */
    8586/* Location: ./application/config/database.php */
  • pro-violet-viettel/sourcecode/application/modules/ajax/controllers/privatecontent.php

    r289 r682  
    4040        public function getContent () {
    4141                $xmlData = $this->vservices->getPrivateTree();
     42                echo $xmlData;die();
    4243                $this->xml->parse($xmlData);
     44               
    4345                $aryDirs = array();
    4446                $aryFiles = array();
  • pro-violet-viettel/sourcecode/assets/js/filemanager/filemanager.js

    r289 r682  
    1717                        var dirTreeHeight = scrHeght - $('#title-bar').height() - $('#tools-bar').height() - $('#status-bar').height() - 2;
    1818
    19                         $('#directory-view-container').height(dirTreeHeight);
     19                        $('#uploaddirectory-view-container').height(dirTreeHeight);
    2020                        $('#directory-content-view-container').height(dirTreeHeight);
    2121                        $('#directory-content-view-container').width('calc(100% - ' + ($('#directory-view-container').width() + 8) + 'px)');
  • pro-violet-viettel/sourcecode/assets/js/manager.js

    r289 r682  
    424424                                label: "Tải lên",
    425425                                className: "btn btn-primary",
    426                                 callback: function () {
    427 
     426                                callback: function (result) {
     427                                 
     428                                    if (result) {
     429                                        var delobj = JSON.stringify(item);
     430                                        var postdata = {delobj: delobj};
     431                                        var script = 'delete';
     432                                        sendCommand({
     433                                            postdata: postdata,
     434                                            script: script,
     435                                            callbackSuccess: function (parseData) {
     436                                                if ($(parseData.DIRECTORIES).length > 0) {
     437                                                    $(parseData.DIRECTORIES).each(function (index) {
     438                                                        o.oTree.deletion(this);
     439                                                        o.oGrid.deletion(this, 'directory');
     440                                                    });
     441                                                }
     442
     443                                                if ($(parseData.FILES).length > 0) {
     444                                                    $(parseData.FILES).each(function (index) {
     445                                                        var file = o.data.FILES[searchItemByID(this, 'file')];
     446                                                        o.oGrid.deletion(this, file.minetype);
     447                                                    });
     448                                                }
     449                                            },
     450                                            callbackDone: function (obj) {
     451                                                if ($(parseData.DIRECTORIES).length > 0) {
     452                                                    $(parseData.DIRECTORIES).each(function (index) {
     453                                                        delete o.data.DIRECTORIES[searchItemByID(this, 'directory')];
     454                                                    });
     455                                                }
     456
     457                                                if ($(parseData.FILES).length > 0) {
     458                                                    $(parseData.FILES).each(function (index) {
     459                                                        delete o.data.FILES[searchItemByID(this, 'file')];
     460                                                    });
     461                                                }
     462
     463                                                o.oTree.setData(o.data.DIRECTORIES);
     464                                                o.oGrid.setData(o.data);
     465                                                self.setTreeCurrentNode(parentID);
     466                                                o.oGrid.reloadGrid();
     467                                            },
     468                                            callbackFail: function () {
     469                                            }
     470                                        });
     471                                    }
    428472                                }
    429473                            },
     
    444488                    });
    445489                    $('#upload').fileupload({
    446                          dropZone: $('#drop'),
     490                        dropZone: $('#drop'),
    447491                        add: function (e, data) {
    448492
     
    761805                    else {
    762806                        //execute or preview file
     807                          alert(JSON.stringify(node, null, 4));
    763808                    }
    764809                };
Note: See TracChangeset for help on using the changeset viewer.