Files @ fb9550946c26
Branch filter:

Location: kallithea/kallithea/templates/forks/forks.html

Mads Kiilerich
js: use strict ... and fix the problems it points out

"use strict" gives stricter checks, both statically and at runtime. The
strictness tightens up the code and prevents some kinds of problems.

The <script> tag addition might not be pretty, but has consistently been added
with:

sed -i 's,<script>$,&'"'"'use strict'"'"';,g' `hg loc '*.html'`
## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>

<%block name="title">
    ${_('%s Forks') % c.repo_name}
</%block>

<%def name="breadcrumbs_links()">
    ${_('Forks')}
</%def>

<%block name="header_menu">
    ${self.menu('repositories')}
</%block>

<%def name="main()">
${self.repo_context_bar('showforks')}
<div class="panel panel-primary">
    <div class="panel-heading clearfix">
        ${self.breadcrumbs()}
    </div>
    <div class="panel-body">
        <div id="forks">
            <%include file='forks_data.html'/>
        </div>
    </div>
</div>
<script>'use strict';
  $(document).ready(function(){
      var $forks = $('#forks');
      $forks.on('click','.pager_link',function(e){
          asynchtml(e.target.href, $forks, function(){
              show_more_event();
              tooltip_activate();
          });
          e.preventDefault();
      });
  });
</script>
</%def>