Changeset 7808

Show
Ignore:
Timestamp:
07/28/09 15:28:35 (12 months ago)
Author:
ssterling
Message:

On the Article Metrics Tab, editing either rating will now refresh both ratings displays (i.e., on the RHC and in the main body of the page). Also checked to make sure that Joe's fix to the Related Content "More" link in the RHC works for all article tabs for all journals.

Addresses #1372
Addresses #1375

Location:
head/ambra
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • head/ambra/libs/js/src/main/scripts/ambra/rating.js

    r7659 r7808  
    292292    } 
    293293  }); 
    294 } 
    295  
    296    
    297    
    298    
     294  dojo.xhrGet({ 
     295    url: _namespace + "/rate/getUpdatedRatingsOnArticleMetricsTab.action?articleURI=" + uri, 
     296    handleAs:'text', 
     297    error: function(response, ioArgs){ 
     298     handleXhrError(response, ioArgs); 
     299    }, 
     300    load: function(response, ioArgs){ 
     301     dojo.byId('ratingOnArticleMetricsTab').innerHTML = response; 
     302    } 
     303  }); 
     304} 
     305 
     306   
     307   
     308   
  • head/ambra/webapp/src/main/resources/struts.xml

    r7779 r7808  
    269269      </result> 
    270270    </action> 
     271    <action name="getUpdatedRatingsOnArticleMetricsTab" class="org.topazproject.ambra.rating.action.GetAverageRatingsAction"> 
     272     <result name="success" type="ambraFreemarker"> 
     273       <param name="location">/article/article_metrics_rating.ftl</param> 
     274        <param name="noCache">true</param> 
     275      </result> 
     276    </action> 
    271277    <action name="getArticleRatings" class="org.topazproject.ambra.rating.action.GetArticleRatingsAction"> 
    272278      <result name="success" type="ambraFreemarker">