Changeset 665616 in indico


Ignore:
Timestamp:
03/02/11 14:03:38 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
9b6bab
Parents:
ec3146
git-author:
Alexis Castilla Hernandez <alexis.castilla.hernandez@…> (02/21/11 18:39:03)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (03/02/11 14:03:38)
Message:

[IMP] Added reset in assing contribution page

  • Implemented reset filters functionality in assign contributions page
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/tpls/ConfReviewingAssignContributions.tpl

    rec3146 r665616  
    1313<% end %> 
    1414<%else:%> 
    15 <table> 
     15<table style="margin-left:20px;"> 
    1616    <tr> 
     17        <td id="resetFilters" align="bottom" style="display: none;"> 
     18            <div style="padding-top:30px; "> 
     19                <span id="btnReset" class="btnRemove" name="resetFilters"><%= _("Reset filters")%></span> 
     20                <span style="padding: 0px 6px 0px 6px">|</span> 
     21            </div> 
     22        </td> 
    1723        <td align="bottom"> 
    18             <div id="showHideFilteringHelp" style="padding-top:30px; margin-left:20px;"><div id="showHideFiltering" style="display:inline"></div></div> 
     24            <div id="showHideFilteringHelp" style="padding-top:30px;"><div id="showHideFiltering" style="display:inline"></div></div> 
    1925        </td> 
    2026        <td align="bottom" style="padding-left:10px; padding-top:27px;"> 
     
    11411147 */ 
    11421148var fetchContributions = function() { 
     1149 
     1150    if (appliedFilter) { 
     1151        $E('resetFilters').dom.style.display = ''; 
     1152    } else { 
     1153        $E('resetFilters').dom.style.display = 'none'; 
     1154    } 
     1155    //alert(appliedFilter); 
    11431156 
    11441157    contributions.clear(); 
     
    15741587bind.element($E("tablebody"), contributions, contributionTemplate); 
    15751588 
    1576 $E('applyFilter').observeClick(fetchContributions); 
     1589$E('btnReset').observeClick(function(){window.location = "<%= urlHandlers.UHConfModifReviewingAssignContributionsList.getURL(Conference) %>";}); 
     1590 
     1591var appliedFilter = false; 
     1592 
     1593$E('applyFilter').observeClick(function(){ 
     1594        $E('filteringTable').dom.style.display = 'none'; 
     1595        buildShowHideFiltering(); 
     1596    appliedFilter = true; 
     1597    fetchContributions(); 
     1598}); 
    15771599 
    15781600<% if not IsOnlyReferee and not (ConfReview.getChoice() == 3 or ConfReview.getChoice() == 1): %> 
Note: See TracChangeset for help on using the changeset viewer.