removing tests for ranking
This commit is contained in:
@@ -12,32 +12,6 @@
|
||||
type='text/javascript'
|
||||
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
$("td.rankingtoggle").click( function() {
|
||||
var workout_id = $(this).attr('workoutid');
|
||||
console.log(workout_id);
|
||||
$.getJSON(window.location.protocol + '//'+window.location.host + '/rowers/workout/'+workout_id+'/toggle-ranking/', function(json) {
|
||||
console.log(JSON.stringify(json));
|
||||
rankingpiece = json.result;
|
||||
tdid = "#star"+workout_id;
|
||||
console.log(rankingpiece);
|
||||
console.log($(tdid).length);
|
||||
if (rankingpiece) {
|
||||
$(tdid).addClass('yellow');
|
||||
$(tdid).removeClass('notyellow');
|
||||
$(tdid).html('☆');
|
||||
console.log('adding yellow '+tdid);
|
||||
} else {
|
||||
$(tdid).removeClass('yellow');
|
||||
$(tdid).addClass('notyellow');
|
||||
$(tdid).html('☆');
|
||||
console.log('remove yellow '+tdid);
|
||||
};
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -100,16 +74,6 @@
|
||||
</form>
|
||||
</p>
|
||||
<p>
|
||||
{% if rankingonly and not team %}
|
||||
<a href="/rowers/list-workouts/">
|
||||
<i class="far fa-star"></i>Show All Workouts
|
||||
</a>
|
||||
{% elif not team %}
|
||||
<a href="/rowers/list-workouts/ranking/">
|
||||
<i class="fas fa-star"></i>Show Only Ranking Pieces
|
||||
</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
<span>
|
||||
{% if workouts.has_previous %}
|
||||
|
||||
Reference in New Issue
Block a user