1234567891011121314151617181920 |
- /*
- * 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);
- }
- });
- });
|