瀏覽代碼

Fix jquery selecting error.

tags/v1.0^2
Benjamin Attal 10 年之前
父節點
當前提交
7f63adfb31
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      static/js/index.js

+ 2
- 2
static/js/index.js 查看文件

@@ -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);


Loading…
取消
儲存