Start adding basic login infrastructure (still needs styling)
[gitphp.git] / js / commitdiff.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * GitPHP Javascript commitdiff loader
 * 
 * Initializes script modules used on the commitdiff page
 * 
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2011 Christopher Han
 * @package GitPHP
 * @subpackage Javascript
 */
 
define(["jquery", "modules/sidebysidecommitdiff", "common"], function($, sbsDiff) {
        $(function(){
                var toc = $('div.commitDiffSBS div.SBSTOC');
                var content = $('div.SBSContent');
                if ((toc.size() > 0) && (content.size() > 0)) {
                        sbsDiff.init(toc, content);
                }
        });
});
 
comments