Changeset 6382


Ignore:
Timestamp:
Nov 24, 2017, 12:40:30 PM (2 years ago)
Author:
joamuran
Message:

Removed Download Button. Download info appears on Flavour Button

Location:
releases/trunk/fuentes/releases
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/trunk/fuentes/releases/index.html

    r6161 r6382  
    7878            </div>
    7979           
    80             <div class="button_container" id="button_container">
     80            <!--div class="button_container" id="button_container">
    8181                <button type="button" class="btn btn-primary" id="downloadButton">
    8282                    <div id="downloadButtonImgContainer">
     
    8787                </button>
    8888               
    89             </div>
     89            </div-->
    9090           
    9191           
  • releases/trunk/fuentes/releases/js/index.js

    r6161 r6382  
    3838   
    3939    $(div).on("click", function(e){
    40        
    4140        /*$("#right_panel").css("display", "none");*/
    4241        $("#donwloadSection").css("display", "none");
     
    5958       
    6059        self.drawReleaseInfo(version, name);
    61         $("#downloadButton").attr("version", version);
    62         $("#downloadButton").attr("name", name);
     60        /*$("#downloadButton").attr("version", version);
     61        $("#downloadButton").attr("name", name);*/
    6362       
    6463        self.checkViewPort();
     64        //self.showIsosForRelease($(ev.target).attr("version"), $(ev.target).attr("name"));
     65        self.showIsosForRelease(version, name);
    6566       
    6667    });
     
    117118
    118119releasesManagerClass.prototype.drawReleaseInfo=function drawReleaseInfo(version, flavour){
    119      var self=this;
    120      
    121      // first of all, check if version to draw is loaded or not
    122      if (version!=self.releaseShown) self.updateCurrentReleaseShownInfo(version);
     120    var self=this;
     121     
     122    // first of all, check if version to draw is loaded or not
     123    if (version!=self.releaseShown) self.updateCurrentReleaseShownInfo(version);
    123124     
    124125     // Update Download Button
    125      $("#downloadButton").attr("version", version);
     126    $("#downloadButton").attr("version", version);
    126127    $("#downloadButton").attr("name", flavour);
     128   
     129    window.setTimeout(function(){
     130        self.showIsosForRelease(version, flavour);
     131        },100);
     132   
     133     
    127134     
    128135     //console.log(version);
     
    140147     $("#selected_update_data").html(gettext("Last Update: ")+self.currentReleaseLastDate);
    141148     $("#selected_explanation").html(gettext(self.releasesInfo.flavours[flavour].desc));
     149     
    142150   
    143151    /*
Note: See TracChangeset for help on using the changeset viewer.