Permalink
Browse files

remove dead code; cleanup whitespace in view-result.js

  • Loading branch information...
1 parent 9df969f commit de733556a665487169895da634fe9a3f6b3f4503 @mojavelinux mojavelinux committed Jan 12, 2015
Showing with 3 additions and 14 deletions.
  1. +3 −14 javascripts/view-result.js
@@ -7,24 +7,13 @@ function insert_result_links() {
$('.result').each(function(idx, node) {
var result_block = $(node);
var title_div = result_block.prev().find('.title');
- //title_div.append('<a class="view-result" href="#">[ view result ]</a>');
var view_result_link = $('<a class="view-result" href="#">view result</a>');
title_div.append(view_result_link);
- view_result_link.on('click', function(event){
- event.preventDefault();
- toggle_result_block(result_block);
+ view_result_link.on('click', function(event) {
+ event.preventDefault();
+ toggle_result_block(result_block);
});
});
}
-/*
-function insert_result_links_alt() {
- $('.reveal-modal').each(function(idx, el) {
- znode = $(node);
- reveal_id = znode.attr('id');
- znode.prev().find('.title').append('<a class="view-result" href="#" data-reveal-id="' + reveal_id + '">[ view result ]</a>');
- }
-}
-*/
-
$(insert_result_links);

0 comments on commit de73355

Please sign in to comment.