Changeset 1308


Ignore:
Timestamp:
07/19/11 09:32:36 (8 years ago)
Author:
gogo
Message:

Part 1: removing old mfm code

Location:
branches/MootoolsFileManager-Update/plugins/MootoolsFileManager
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/MootoolsFileManager.FileManager.js

    r1307 r1308  
    114114                          $(self.FileManagerAttributes().table).dispose(); 
    115115                          return true; 
    116                         } 
     116                        }, 
     117                         
     118        showDirGallery: false, 
     119        keyboardNavigation: false 
    117120      });        
    118121    } 
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/MootoolsFileManager.ImageManager.js

    r1307 r1308  
    9494                        $(self.ImageManagerAttributes().table).dispose(); 
    9595                        return true; 
    96                       } 
     96                      }, 
     97                       
     98      showDirGallery: false, 
     99      keyboardNavigation: false 
    97100    });         
    98101  } 
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/MootoolsFileManager.css

    r1302 r1308  
    11.filemanager-container .filemanager { overflow:visible; } 
    2 .filemanager-info-area { width:50%; float:left; clear:left; } 
    3 .filemanager-preview-area { width:50%; float:left; clear:right; } 
    4 div.filemanager-info-area dt, div.filemanager-preview-area dt { width:8%;/*80px;*/ margin-left:5px; } 
     2 
     3div.filemanager-info-area dt, div.filemanager-preview-area dt { width: 100px; margin-left:5px; } 
    54div.filemanager-info-area dd, div.filemanager-preview-area dd { width:auto; } 
     5div.filemanager div.filemanager-preview-content {clear:none; } 
    66 
    77div.filemanager-preview-area dt { float:left; } 
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/MootoolsFileManager.js

    r1302 r1308  
    5959  } 
    6060   
     61  // Because dom is probably already ready for us, we can't use the autoinit, we do it manually 
     62  __MILKBOX_NO_AUTOINIT__ = true; 
     63   
    6164  MootoolsFileManager.AssetLoader 
    6265    // These are now loaded by FileManager.js automatically 
     
    6568    //.loadScript('mootools-filemanager/Source/Additions.js', 'MootoolsFileManager')         
    6669    .loadScript('mootools-filemanager/Source/FileManager.js', 'MootoolsFileManager') 
    67     .loadScript('mootools-filemanager/Language/Language.en.js', 'MootoolsFileManager'); 
     70    .loadScript('mootools-filemanager/Language/Language.en.js', 'MootoolsFileManager') 
     71    .whenReady(function() { 
     72      window.milkbox =  new Milkbox({ 
     73        centered:false 
     74      }); 
     75    }); 
    6876     
    6977 if(__MFM_USE_FLASH__) 
     
    118126{ 
    119127  var self = this;   
    120   var phpcfg = self.phpcfg; 
     128  var phpcfg = self.phpcfg;     
    121129   
    122130  if (phpcfg.files_dir)  
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/README.DEVELOPERS

    r1239 r1308  
    1 The mootools-filemanager is a git repository which (probably) contains local modifications to work better with Xinha.  Therefore, we want to keep it as a git repo so we can easily update. 
     1The mootools-filemanager directory contains a version of mootools-filemanager as extracted from the following git repository 
    22 
    3 The upstream git repository is (from http://github.com/cpojer/mootools-filemanager) 
     3https://github.com/sleemanj/mootools-filemanager/ 
    44 
    5 git://github.com/cpojer/mootools-filemanager.git 
    6  
    7 Simply CD'ing into the mootools-filemanager directory and performing 
    8   git pull 
    9 should be sufficient to update. 
    10  
    11 The mootools-filemanager/.git/ directory should be stripped prior to shipping for space concerns. 
     5it has been stripped of unnecessary code including the "GetID3" library as this is GPL licenced rather than MIT, no code changes are necessary from the git above, just stuff deleted. 
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/XinhaFileManager.php

    r1302 r1308  
    2323 */ 
    2424 
    25 require_once(str_replace('\\', '/', dirname(__FILE__)) . '/mootools-filemanager/Assets/Connector/FMgr4Alias.php'); 
     25require_once(str_replace('\\', '/', dirname(__FILE__)) . '/mootools-filemanager/Assets/Connector/FileManagerWithAliasSupport.php'); 
    2626 
    2727 
     
    5959        //  
    6060        // Note that this will force all 250px thumbnails to a maximum width of 140px 
    61         public function getThumb($legal_url, $path, $width, $height) 
     61        /* 
     62        public function getThumb($meta, $path, $width, $height, $onlyIfExistsInCache = false) 
    6263        { 
    63                 return parent::getThumb($legal_url, $path, min(164, $width), $height); 
     64                return parent::getThumb($meta, $path, min(164, $width), $height, $onlyIfExistsInCache); 
    6465        } 
     66        */ 
    6567} 
    6668 
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/backend.php

    r1307 r1308  
    7878 
    7979// Ensure thumbnail path is OK 
    80 if(!isset($IMConfig['files_dir']) || !isset($IMConfig['images_dir'])) 
     80if(!isset($IMConfig['files_dir']) && !isset($IMConfig['images_dir'])) 
    8181{ 
    8282  unset($IMConfig['thumbs_dir']); 
     
    126126      'suggestedMaxImageDimension' => $IMConfig['suggested_images_image_dimension'], 
    127127      'thumbnailsMustGoThroughBackend' => FALSE,           
    128       'filter'        => 'image/',             
     128      'filter'        => 'image/',           
     129       
     130      'thumbBigSize'  => 150, 
    129131    )); 
    130132 
     
    161163      'thumbnailsMustGoThroughBackend' => FALSE,       
    162164     // 'filter'        => $IMConfig['files_filter'], 
    163              
     165      'thumbBigSize'  => 150, 
     166      'useGetID3IfAvailable' => false, 
    164167    )); 
    165168 
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/config.php

    r1302 r1308  
    224224} 
    225225 
    226  
    227  
    228226?> 
Note: See TracChangeset for help on using the changeset viewer.