Changeset 33230

Show
Ignore:
Timestamp:
26.06.2019 17:22:42 (3 weeks ago)
Author:
davidb
Message:

Continuation of quick-hack to allow simple emptying of basket, with consisent display in page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/heritage-nz/js/berrybasket/berrycheckout.js

    r33228 r33230  
    156156 
    157157        var trashbin =  YAHOO.util.Dom.get('trashbin'); 
    158         if ( trashbin !=null){ 
     158        if ( trashbin != null){ 
    159159        trashbin.style.background = 'url("interfaces/default/images/trash-full.png") 0 0 no-repeat'; 
    160160        } 
     
    162162 
    163163    // Ensure the select-all, delete-all and delete-selected checkboxes are deselected 
    164     YAHOO.util.Dom.get('select-all-checkbox').checked = false;  
    165     YAHOO.util.Dom.get('delete-selected-checkbox').checked = false; 
    166     YAHOO.util.Dom.get('delete-all-checkbox').checked = false;  
     164    // **** 
     165    //YAHOO.util.Dom.get('select-all-checkbox').checked = false;  
     166    //YAHOO.util.Dom.get('delete-selected-checkbox').checked = false; 
     167    //YAHOO.util.Dom.get('delete-all-checkbox').checked = false;  
    167168    } 
    168169 
     
    370371    if (docList.length == 0){ 
    371372        content.appendChild(document.createTextNode(gs.text.berry.empty_basket));  
     373        // **** 
     374        var deleteAllDiv =  YAHOO.util.Dom.get('berryBasketDeleteAll'); 
     375        if (deleteAllDiv != null) { 
     376        deleteAllDiv.style.display = "none"; 
     377        } 
     378 
    372379        return; 
    373380    } 
     
    434441    if (docList.length == 0){ 
    435442        content.appendChild(document.createTextNode(gs.text.berry.empty_basket)); 
     443 
     444        // **** 
     445        var deleteAllDiv =  YAHOO.util.Dom.get('berryBasketDeleteAll'); 
     446        if (deleteAllDiv != null) { 
     447        deleteAllDiv.style.display = "none"; 
     448        } 
     449 
    436450        return; 
    437451    }