Sfoglia il codice sorgente

Fix jquery selecting error.

tags/v1.0^2
Benjamin Attal 10 anni fa
parent
commit
7f63adfb31
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      static/js/index.js

+ 2
- 2
static/js/index.js Vedi File

@@ -212,8 +212,8 @@ function createResult(codelet) {

var cur_match = 0;
$(newDiv).click(function(e) {
var $match = $('#match_' + cur_match),
$code = $('#tablecontainer');
var $code = $(this).find('#tablecontainer'),
$match = $code.find('#match_' + cur_match);

$code.scrollTop($code.scrollTop() - $code.height() / 2 +
$match.position().top + $match.height() / 2);


Caricamento…
Annulla
Salva