Changeset 2837
- Timestamp:
- 07/09/08 09:13:37 (4 months ago)
- Files:
-
- branches/Copix_3_0_X/www/js/mootools/plugins/loader.js (modified) (4 diffs)
- branches/Copix_3_0_X/www/js/taglib/copixzone.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Copix_3_0_X/www/js/mootools/plugins/loader.js
r2828 r2837 1 var loader = new Class ({1 CopixLoader = new Class ({ 2 2 div:null, 3 3 cancel:null, … … 8 8 this.onCancel = params['onCancel']; 9 9 } 10 10 11 this.div = new Element('div'); 11 12 this.div.setStyles({ … … 19 20 ,'position':'absolute' 20 21 ,'text-align':'center' 21 ,'background-image':'url(" '+Copix.getResourceURL('img/tools/load.gif')+'")'22 ,'background-image':'url("themes/default/img/tools/load.gif")' 22 23 ,'background-repeat':'no-repeat' 23 24 ,'background-position':'center' … … 53 54 }.bind(this)) 54 55 }, 55 56 56 load: function () { 57 57 this.div.setStyles({ branches/Copix_3_0_X/www/js/taglib/copixzone.js
r1263 r2837 12 12 13 13 if(options.instanceId) { 14 zone.addEvent('load', function() { 14 zone.addEvent('load', function(params) { 15 if (!params) { 16 params = {}; 17 } 15 18 if (zone.innerHTML == '') { 16 19 Copix.setLoadingHTML(zone); … … 19 22 update: zone, 20 23 evalScripts : true, 21 data: {'instanceId': options.instanceId},24 data: $merge ({'instanceId': options.instanceId}, params), 22 25 onComplete: zone.fireEvent.bind(zone,'complete') 23 26 }).request(); … … 29 32 zone.addEvent('load', zone.fireEvent.bind(zone,'complete')); 30 33 } 34 35 zone.addEvent('refresh', function (params) { 36 zone.innerHTML = '' 37 zone.fireEvent('load', params); 38 }); 31 39 32 40 zone.addEvent('display', function() {
