Ignore:
Timestamp:
02/06/18 08:37:50 (19 months ago)
Author:
gogo
Message:

Updates to MootoolsFileManager? - most importantly removal of Flash dependancy, now uses HTML5 file uploads.

Also now updated the default MooTools? to 1.6.0 - you can of course load your own MooTools? first (before Xinha), anything down to about 1.3 works I think, if you load yours then it will be used instead.

Other updates from https://github.com/sleemanj/mootools-filemanager included in this update are:

  • Remove space from allowed characters in filenames, they will be converted to _ on upload
  • Fix for a small (inconsequential) uppercase extension bug
  • Add some more php extensions to the "unsafe" list
  • Fix image resize on upload to be more space efficient
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/MootoolsFileManager/mootools-filemanager/Assets/js/milkbox/milkbox.js

    r1321 r1371  
    3636                onXmlGalleries:function(){}, 
    3737                onClosed:function(){}, 
    38                 onFileReady:function(){} 
     38                onFileReady:function(){}, 
     39    zIndex: 50001, 
    3940        }, 
    4041 
     
    476477                        autoSize:this.options.autoSize, 
    477478                        autoSizeMaxHeight:this.options.autoSizeMaxHeight, 
    478                         imageOfText:this.options.imageOfText 
     479                        imageOfText:this.options.imageOfText, 
     480      zIndex:this.options.zIndex 
    479481                }); 
    480482        }, 
     
    713715                                'overflow':'hidden', 
    714716                                'display':'none', 
    715                                 'z-index':50001,//overlay z-index (see css) + 1 
     717                                'z-index':this.options.zIndex,//50001,//overlay z-index (see css) + 1 
    716718                                'width':this.options.initialWidth, 
    717719                                'height':this.options.initialHeight, 
     
    11741176 
    11751177//Creating Milkbox instance: you can comment this code and instantiate Milkbox somewhere else instead. 
    1176 window.addEvent('domready', function(){  
    1177         //milkbox = new Milkbox({overlayOpacity:1, fileboxBorderWidth:'10px', fileboxBorderColor:'#ff0000', fileboxPadding:'20px', centered:true}); 
    1178         milkbox = new Milkbox({  
    1179                 //autoPlay:true 
    1180         }); 
    1181 }); 
     1178if( typeof __MILKBOX_NO_AUTOINIT__ == 'undefined' || __MILKBOX_NO_AUTOINIT__ == false) 
     1179{ 
     1180  window.addEvent('domready', function(){  
     1181    //milkbox = new Milkbox({overlayOpacity:1, fileboxBorderWidth:'10px', fileboxBorderColor:'#ff0000', fileboxPadding:'20px', centered:true}); 
     1182    milkbox = new Milkbox({  
     1183      //autoPlay:true 
     1184    }); 
     1185  }); 
     1186} 
Note: See TracChangeset for help on using the changeset viewer.