Ignore:
Timestamp:
2009-06-16T13:45:45+12:00 (15 years ago)
Author:
oranfry
Message:

reorganised javascript for the new interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/oran/js/ygDDPlayer.js

    r18617 r19854  
    6969       
    7070         var img = document.createElement('img');
    71               img.src = 'interfaces/default/images/berry3.png';
    72               img.height = 15;
    73               img.width = 15;
    74              img.border = 0;             
    75           dragEl.appendChild(img);
     71         img.src = 'interfaces/oran/images/berry.png';
     72         dragEl.appendChild(img);
    7673       
    7774        var added = true;
     
    9390        targetEl.className = "target";
    9491    }
     92    correctBerryExpandCollapseButtons();
    9593};
    9694
     
    210208                     for (var i =0; i < player.berryList.length; i++ ){
    211209                             var img = document.createElement('img');
    212                               img.src = 'interfaces/default/images/berry3.png';
    213                               img.height = 15;
    214                               img.width = 15;
    215                               img.border = 0;             
     210                              img.src = 'interfaces/oran/images/berry.png';
    216211                              berries.appendChild(img);
    217212                       }
     213
     214                correctBerryExpandCollapseButtons();
    218215                                           
    219216              }
     
    273270   
    274271
    275     var  delurl = delurlPath + el.id;   
     272    var  delurl = delurlPath + el.id;
    276273     var delSuccess = function(o){
    277274         var result = o.responseXML;
     
    318315   
    319316
    320   if (id == 'berrybasket'){
    321        YAHOO.util.Connect.asyncRequest(request_type , addurl , addcallback);         
    322   }
    323   else{
    324         if (id == 'trashbin'){
    325              YAHOO.util.Connect.asyncRequest(request_type , delurl , delcallback);
    326          }
    327    }
    328 
    329    this.resetTargets();     
    330    this.slot = oDD;
    331    this.slot.player = this;
     317    if (id == 'berrybasket'){
     318        YAHOO.util.Connect.asyncRequest(request_type , addurl , addcallback);         
     319    } else {
     320        if (id == 'trashbin'){
     321            YAHOO.util.Connect.asyncRequest(request_type , delurl , delcallback);
     322        }
     323    }
     324
     325    this.resetTargets();   
     326    this.slot = oDD;   
     327    this.slot.player = this;
    332328 
    333329};
Note: See TracChangeset for help on using the changeset viewer.