- Timestamp:
- 07/14/10 09:47:19 (9 years ago)
- Location:
- trunk/plugins/MootoolsFileManager/mootools-filemanager/Source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/MootoolsFileManager/mootools-filemanager/Source/Additions.js
r1245 r1268 26 26 Element.implement({ 27 27 28 appearOn: function(el, opacity, options){ 29 opacity = $type(opacity) == 'array' ? [opacity[0] || 1, opacity[1] || 0] : [opacity || 1, 0]; 30 31 this.set({ 32 opacity: opacity[1], 33 tween: options || {duration: 200} 34 }); 35 36 $(el).addEvents({ 37 mouseenter: this.fade.bind(this, opacity[0]), 38 mouseleave: this.fade.bind(this, opacity[1]) 39 }); 40 41 return this; 42 }, 28 appearOn: function(el) { 29 30 var params = Array.link($A(arguments).erase(arguments[0]), {options: Object.type, opacity: $defined}), 31 opacity = $type(params.opacity) == 'array' ? [params.opacity[0] || 1, params.opacity[1] || 0] : [params.opacity || 1, 0]; 32 33 this.set({ 34 opacity: opacity[1], 35 tween: params.options || {duration: 500} 36 }); 37 38 $$(el).addEvents({ 39 mouseenter: this.fade.bind(this, opacity[0]), 40 mouseleave: this.fade.bind(this, opacity[1]) 41 }); 42 43 return this; 44 }, 43 45 44 46 center: function(offsets){ -
trunk/plugins/MootoolsFileManager/mootools-filemanager/Source/Uploader/Swiff.Uploader.js
r1239 r1268 124 124 125 125 // container options for Swiff class 126 this.options.container = this.box = new Element('span', {'class': 'swiff-uploader-box'}).inject( $(this.options.container) || document.body);126 this.options.container = this.box = new Element('span', {'class': 'swiff-uploader-box'}).inject(document.id(this.options.container) || document.body); 127 127 128 128 // target 129 this.target = $(this.options.target);129 this.target = document.id(this.options.target); 130 130 if (this.target) { 131 131 var scroll = window.getScroll();
Note: See TracChangeset
for help on using the changeset viewer.