Changeset - 19d93bd709bf
[Not reviewed]
default
0 55 0
Mads Kiilerich (mads) - 6 years ago 2020-05-19 04:36:53
mads@kiilerich.com
Grafted from: b7b1d2752329
html: put 'use strict' on separate lines

use.py:
import re
import sys
for fn in sys.argv[1:]:
with open(fn) as f:
s = f.read()
s = re.sub(r'''(<script>)('use strict';)\n( *)''', r'''\1\n\3\2\n\3''', s)
with open(fn, 'w') as f:
f.write(s)

python use.py $(hg loc 'kallithea/templates/**.html')
55 files changed with 132 insertions and 66 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/admin/admin.html
Show inline comments
 
@@ -27,7 +27,8 @@
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 
$(document).ready(function() {
 
  $('#j_filter').click(function(){
 
    var $jfilter = $('#j_filter');
kallithea/templates/admin/admin_log.html
Show inline comments
 
@@ -37,7 +37,8 @@
 
    %endfor
 
</table>
 

	
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  $(document).ready(function(){
 
    var $user_log = $('#user_log');
 
    $user_log.on('click','.pager_link',function(e){
kallithea/templates/admin/auth/auth_settings.html
Show inline comments
 
@@ -105,7 +105,8 @@
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $('.toggle-plugin').click(function(e){
 
        var $auth_plugins_input = $('#auth_plugins');
 
        function notEmpty(element) {
kallithea/templates/admin/gists/edit.html
Show inline comments
 
@@ -35,7 +35,8 @@
 
              ${(h.HTML(_('Gist was updated since you started editing. Copy your changes and click %(here)s to reload new version.'))
 
                             % {'here': h.link_to(_('here'),h.url('edit_gist', gist_id=c.gist.gist_access_id))})}
 
            </div>
 
            <script>'use strict';
 
            <script>
 
            'use strict';
 
            if (typeof jQuery != 'undefined') {
 
                $(".alert").alert();
 
            }
 
@@ -79,7 +80,8 @@
 
                </div>
 

	
 
                ## dynamic edit box.
 
                <script>'use strict';
 
                <script>
 
                    'use strict';
 
                    $(document).ready(function(){
 
                        var myCodeMirror = initCodeMirror(${h.js('editor_' + h.FID('f',file.path))}, ${h.jshtml(request.script_name)}, '');
 

	
 
@@ -146,7 +148,8 @@
 
            <a class="btn btn-default" href="${h.url('gist', gist_id=c.gist.gist_access_id)}">${_('Cancel')}</a>
 
            </div>
 
          ${h.end_form()}
 
          <script>'use strict';
 
          <script>
 
              'use strict';
 
              $('#update').on('click', function(e){
 
                  e.preventDefault();
 

	
kallithea/templates/admin/gists/new.html
Show inline comments
 
@@ -55,7 +55,8 @@
 
            ${h.reset('reset',_('Reset'),class_="btn btn-default btn-xs")}
 
            </div>
 
          ${h.end_form()}
 
          <script>'use strict';
 
          <script>
 
            'use strict';
 
            $(document).ready(function(){
 
                var myCodeMirror = initCodeMirror('editor', ${h.jshtml(request.script_name)}, '');
 

	
kallithea/templates/admin/my_account/my_account_api_keys.html
Show inline comments
 
@@ -90,7 +90,8 @@ happen anyway, reset the API key on this
 
''')}</p>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $("#lifetime").select2({
 
            'dropdownAutoWidth': true
kallithea/templates/admin/my_account/my_account_repos.html
Show inline comments
 
@@ -4,7 +4,8 @@
 
    <table class="table" id="datatable_list_wrap" width="100%"></table>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  var data = ${h.js(c.data)};
 
  $("#datatable_list_wrap").DataTable({
 
        data: data.records,
kallithea/templates/admin/my_account/my_account_watched.html
Show inline comments
 
@@ -4,7 +4,8 @@
 
    <table class="table" id="datatable_list_wrap" width="100%"></table>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  var data = ${h.js(c.data)};
 
  $("#datatable_list_wrap").DataTable({
 
        data: data.records,
kallithea/templates/admin/repo_groups/repo_group_add.html
Show inline comments
 
@@ -61,7 +61,8 @@
 
    </div>
 
    ${h.end_form()}
 
</div>
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        function setCopyPermsOption(group_val){
 
            if(group_val != "-1"){
kallithea/templates/admin/repo_groups/repo_group_edit_perms.html
Show inline comments
 
@@ -102,7 +102,8 @@ ${h.form(url('edit_repo_group_perms', gr
 
</div>
 
${h.end_form()}
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    function ajaxActionRevoke(obj_id, obj_type, field_id, obj_name) {
 
        let url = ${h.jshtml(h.url('edit_repo_group_perms_delete', group_name=c.repo_group.group_name))};
 
        var revoke_msg = _TM['Confirm to revoke permission for {0}: {1} ?'].format(obj_type.replace('_', ' '), obj_name);
kallithea/templates/admin/repo_groups/repo_group_edit_settings.html
Show inline comments
 
@@ -41,7 +41,8 @@ ${h.form(url('delete_repo_group', group_
 
</div>
 
${h.end_form()}
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $("#parent_group_id").select2({
 
            'dropdownAutoWidth': true
kallithea/templates/admin/repo_groups/repo_groups.html
Show inline comments
 
@@ -30,7 +30,8 @@
 
        <table class="table" id="datatable_list_wrap" width="100%"></table>
 
    </div>
 
</div>
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  var data = ${h.js(c.data)};
 
  $("#datatable_list_wrap").DataTable({
 
        data: data.records,
kallithea/templates/admin/repos/repo_add_base.html
Show inline comments
 
@@ -65,7 +65,8 @@ ${h.form(url('repos'))}
 
            </div>
 
        </div>
 
</div>
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        function setCopyPermsOption(group_val){
 
            if(group_val != "-1"){
kallithea/templates/admin/repos/repo_creating.html
Show inline comments
 
@@ -42,7 +42,8 @@
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 
(function worker() {
 
  $.ajax({
 
    url: ${h.js(h.url('repo_check_home', repo_name=c.repo_name, repo=c.repo, task_id=c.task_id))},
kallithea/templates/admin/repos/repo_edit_advanced.html
Show inline comments
 
@@ -9,7 +9,8 @@ ${h.form(url('edit_repo_advanced_fork', 
 
</div>
 
${h.end_form()}
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $("#id_fork_of").select2({
 
            'dropdownAutoWidth': true
kallithea/templates/admin/repos/repo_edit_permissions.html
Show inline comments
 
@@ -87,7 +87,8 @@ ${h.form(url('edit_repo_perms_update', r
 
</div>
 
${h.end_form()}
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    function ajaxActionRevoke(obj_id, obj_type, field_id, obj_name) {
 
        let url = ${h.js(h.url('edit_repo_perms_revoke',repo_name=c.repo_name))};
 
        var revoke_msg = _TM['Confirm to revoke permission for {0}: {1} ?'].format(obj_type.replace('_', ' '), obj_name);
kallithea/templates/admin/repos/repo_edit_settings.html
Show inline comments
 
@@ -103,7 +103,8 @@ ${h.form(url('update_repo', repo_name=c.
 
    </div>
 
    ${h.end_form()}
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $('#repo_landing_rev').select2({
 
            'dropdownAutoWidth': true
kallithea/templates/admin/repos/repos.html
Show inline comments
 
@@ -29,7 +29,8 @@
 
    </div>
 

	
 
</div>
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  var data = ${h.js(c.data)};
 
  $("#datatable_list_wrap").DataTable({
 
        data: data.records,
kallithea/templates/admin/settings/settings_hooks.html
Show inline comments
 
@@ -50,7 +50,8 @@ ${h.form(url('admin_settings_hooks'), me
 
${h.end_form()}
 
% endif
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 
function delete_hook(hook_id, field_id) {
 
    var sUrl = ${h.js(h.url('admin_settings_hooks_delete'))};
 
    function success() {
kallithea/templates/admin/settings/settings_vcs.html
Show inline comments
 
@@ -62,7 +62,8 @@ ${h.form(url('admin_settings'), method='
 
    </div>
 
    ${h.end_form()}
 

	
 
    <script>'use strict';
 
    <script>
 
        'use strict';
 
        $(document).ready(function(){
 
            $('#path_unlock').on('click', function(){
 
                $('#path_unlock_icon').removeClass('icon-lock');
kallithea/templates/admin/user_groups/user_group_add.html
Show inline comments
 
@@ -52,7 +52,8 @@
 
    ${h.end_form()}
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $('#users_group_name').focus();
 
    });
kallithea/templates/admin/user_groups/user_group_edit_perms.html
Show inline comments
 
@@ -92,7 +92,8 @@ ${h.form(url('edit_user_group_perms_upda
 
</div>
 
${h.end_form()}
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    function ajaxActionRevoke(obj_id, obj_type, field_id, obj_name) {
 
        let url = ${h.js(h.url('edit_user_group_perms_delete', id=c.user_group.users_group_id))};
 
        var revoke_msg = _TM['Confirm to revoke permission for {0}: {1} ?'].format(obj_type.replace('_', ' '), obj_name);
kallithea/templates/admin/user_groups/user_group_edit_settings.html
Show inline comments
 
@@ -48,6 +48,7 @@ ${h.form(url('update_users_group', id=c.
 
                </div>
 
    </div>
 
${h.end_form()}
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  MultiSelectWidget('users_group_members','available_members','edit_users_group');
 
</script>
kallithea/templates/admin/user_groups/user_groups.html
Show inline comments
 
@@ -29,7 +29,8 @@
 
        <table class="table" id="datatable_list_wrap" width="100%"></table>
 
    </div>
 
</div>
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    var data = ${h.js(c.data)};
 
    $("#datatable_list_wrap").DataTable({
 
        data: data.records,
kallithea/templates/admin/users/user_add.html
Show inline comments
 
@@ -84,7 +84,8 @@
 
    ${h.end_form()}
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $('#username').focus();
 
    });
kallithea/templates/admin/users/user_edit_api_keys.html
Show inline comments
 
@@ -77,7 +77,8 @@
 
    ${h.end_form()}
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $("#lifetime").select2({
 
            'dropdownAutoWidth': true
kallithea/templates/admin/users/users.html
Show inline comments
 
@@ -28,7 +28,8 @@
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    var data = ${h.js(c.data)};
 
    $("#datatable_list_wrap").DataTable({
 
        data: data.records,
kallithea/templates/base/base.html
Show inline comments
 
@@ -177,7 +177,8 @@
 
    </div>
 
    </div>
 
  </nav>
 
  <script>'use strict';
 
  <script>
 
    'use strict';
 
    $(document).ready(function() {
 
      var bcache = {};
 

	
 
@@ -399,7 +400,8 @@
 
    </li>
 
  </ul>
 

	
 
    <script>'use strict';
 
    <script>
 
        'use strict';
 
        $(document).ready(function(){
 
            var visual_show_public_icon = ${h.js(c.visual.show_public_icon)};
 
            var cache = {}
 
@@ -527,7 +529,8 @@
 
        </div>
 
    </div>
 

	
 
    <script>'use strict';
 
    <script>
 
      'use strict';
 
      $(document).ready(function(){
 
          activate_parent_child_links();
 
      });
kallithea/templates/base/flash_msg.html
Show inline comments
 
@@ -9,7 +9,8 @@
 
            </div>
 
        % endfor
 
    % endif
 
    <script>'use strict';
 
    <script>
 
    'use strict';
 
    if (typeof jQuery != 'undefined') {
 
        $(".alert").alert();
 
    }
kallithea/templates/base/perms_summary.html
Show inline comments
 
@@ -97,7 +97,8 @@
 
        %endif
 
     %endfor
 
</div>
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        function show_empty(section){
 
            var visible = $('.section_{0} tr.perm_row:visible'.format(section)).length;
kallithea/templates/base/root.html
Show inline comments
 
@@ -21,7 +21,8 @@
 
        <%block name="css_extra"/>
 

	
 
        ## JAVASCRIPT ##
 
        <script>'use strict';
 
        <script>
 
            'use strict';
 
            ## JS translations map
 
            var TRANSLATION_MAP = {
 
                'Cancel': ${h.jshtml(_("Cancel"))},
 
@@ -77,7 +78,8 @@
 
        <script src="${h.url('/js/base.js', ver=c.kallithea_version)}"></script>
 
        ## EXTRA FOR JS
 
        <%block name="js_extra"/>
 
        <script>'use strict';
 
        <script>
 
            'use strict';
 
            $(document).ready(function(){
 
              tooltip_activate();
 
              show_more_event();
kallithea/templates/changelog/changelog.html
Show inline comments
 
@@ -81,7 +81,8 @@ ${self.repo_context_bar('changelog', c.f
 
                ${c.cs_pagination.pager()}
 

	
 
        <script src="${h.url('/js/graph.js', ver=c.kallithea_version)}"></script>
 
        <script>'use strict';
 
        <script>
 
            'use strict';
 
            var jsdata = ${h.js(c.jsdata)};
 
            var graph = new BranchRenderer('graph_canvas', 'graph_content', 'chg_');
 

	
kallithea/templates/changelog/changelog_table.html
Show inline comments
 
@@ -110,7 +110,8 @@
 
    </tbody>
 
    </table>
 

	
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  $(document).ready(function() {
 
    $('#changesets .expand_commit').on('click',function(){
 
      $(this).next('.mid').find('.message > div').toggleClass('hidden');
kallithea/templates/changeset/changeset.html
Show inline comments
 
@@ -22,7 +22,8 @@ ${self.repo_context_bar('changelog', c.c
 
  <div class="panel-heading clearfix">
 
    ${self.breadcrumbs()}
 
  </div>
 
  <script>'use strict';
 
  <script>
 
    'use strict';
 
    var AJAX_COMMENT_URL = ${h.js(url('changeset_comment',repo_name=c.repo_name,revision=c.changeset.raw_id))};
 
    var AJAX_COMMENT_DELETE_URL = ${h.js(url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__'))};
 
  </script>
 
@@ -184,7 +185,8 @@ ${self.repo_context_bar('changelog', c.c
 
    </div>
 

	
 
    ## FORM FOR MAKING JS ACTION AS CHANGESET COMMENTS
 
    <script>'use strict';
 
    <script>
 
      'use strict';
 
      $(document).ready(function(){
 
          $('.code-difftable').on('click', '.add-bubble', function(){
 
              show_comment_form($(this));
kallithea/templates/changeset/changeset_file_comment.html
Show inline comments
 
@@ -192,7 +192,8 @@
 
  </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 

	
 
$(document).ready(function () {
 

	
kallithea/templates/changeset/diff_block.html
Show inline comments
 
@@ -96,7 +96,8 @@
 
</%def>
 

	
 
<%def name="diff_block_js()">
 
<script>'use strict';
 
<script>
 
'use strict';
 
$(document).ready(function(){
 
    $('.btn-image-diff-show').click(function(){
 
        $('.btn-image-diff-show').hide();
kallithea/templates/compare/compare_cs.html
Show inline comments
 
@@ -66,7 +66,8 @@
 
<script src="${h.url('/js/graph.js', ver=c.kallithea_version)}"></script>
 
%endif
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    var jsdata = ${h.js(c.jsdata)};
 
    var graph = new BranchRenderer('graph_canvas', 'graph_content_pr', 'chg_');
 

	
kallithea/templates/compare/compare_diff.html
Show inline comments
 
@@ -97,7 +97,8 @@ ${self.repo_context_bar('changelog')}
 
    </div>
 

	
 
</div>
 
    <script>'use strict';
 
    <script>
 
'use strict';
 

	
 
   $(document).ready(function(){
 
    var cache = {};
kallithea/templates/files/diff_2way.html
Show inline comments
 
@@ -60,7 +60,8 @@ ${self.repo_context_bar('changelog')}
 
        </div>
 
    </div>
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 
var orig1_url = ${h.jshtml(h.url('files_raw_home',repo_name=c.repo_name,f_path=c.node1.path,revision=c.cs1.raw_id))};
 
var orig2_url = ${h.jshtml(h.url('files_raw_home',repo_name=c.repo_name,f_path=c.node2.path,revision=c.cs2.raw_id))};
 

	
kallithea/templates/files/files.html
Show inline comments
 
@@ -36,7 +36,8 @@ ${self.repo_context_bar('files', c.revis
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 
var CACHE = {};
 
var CACHE_EXPIRE = 5*60*1000; //cache for 5*60s
 
//used to construct links from the search list
kallithea/templates/files/files_add.html
Show inline comments
 
@@ -70,7 +70,8 @@ ${self.repo_context_bar('files')}
 
              </div>
 
            </div>
 
            ${h.end_form()}
 
            <script>'use strict';
 
            <script>
 
                'use strict';
 
                $(document).ready(function(){
 
                    var reset_url = ${h.jshtml(h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))};
 
                    var myCodeMirror = initCodeMirror('editor', ${h.jshtml(request.script_name)}, reset_url);
kallithea/templates/files/files_browser.html
Show inline comments
 
@@ -109,7 +109,8 @@
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        // init node filter if we pass GET param ?search=1
 
        var search_GET = ${h.js(request.GET.get('search',''))};
kallithea/templates/files/files_edit.html
Show inline comments
 
@@ -77,7 +77,8 @@ ${self.repo_context_bar('files')}
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        var reset_url = ${h.jshtml(h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.file.path))};
 
        var myCodeMirror = initCodeMirror('editor', ${h.jshtml(request.script_name)}, reset_url);
kallithea/templates/followers/followers.html
Show inline comments
 
@@ -25,7 +25,8 @@ ${self.repo_context_bar('followers')}
 
        </div>
 
    </div>
 
</div>
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  $(document).ready(function(){
 
    var $followers = $('#followers');
 
    $followers.on('click','.pager_link',function(e){
kallithea/templates/forks/fork.html
Show inline comments
 
@@ -88,7 +88,8 @@ ${self.repo_context_bar('createfork')}
 
    </div>
 
    ${h.end_form()}
 
</div>
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        $("#repo_group").select2({
 
            'dropdownAutoWidth': true
kallithea/templates/forks/forks.html
Show inline comments
 
@@ -25,7 +25,8 @@ ${self.repo_context_bar('showforks')}
 
        </div>
 
    </div>
 
</div>
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  $(document).ready(function(){
 
      var $forks = $('#forks');
 
      $forks.on('click','.pager_link',function(e){
kallithea/templates/index_base.html
Show inline comments
 
@@ -43,7 +43,8 @@
 
        </div>
 
    </div>
 

	
 
      <script>'use strict';
 
      <script>
 
        'use strict';
 
        var data = ${h.js(c.data)};
 
        $("#repos_list_wrap").DataTable({
 
                data: data.records,
kallithea/templates/journal/journal.html
Show inline comments
 
@@ -41,7 +41,8 @@
 
        </div>
 
    </div>
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 

	
 
    $('#j_filter').click(function(){
 
        var $jfilter = $('#j_filter');
 
@@ -72,7 +73,8 @@
 

	
 
</script>
 

	
 
<script>'use strict';
 
<script>
 
    'use strict';
 
    $(document).ready(function(){
 
        var $journal = $('#journal');
 
        $journal.on('click','.pager_link',function(e){
kallithea/templates/login.html
Show inline comments
 
@@ -64,7 +64,8 @@
 
            </div>
 
        </div>
 
        ${h.end_form()}
 
        <script>'use strict';
 
        <script>
 
        'use strict';
 
        $(document).ready(function(){
 
            $('#username').focus();
 
        });
kallithea/templates/password_reset.html
Show inline comments
 
@@ -53,7 +53,8 @@
 
                </div>
 
        </div>
 
        ${h.end_form()}
 
        <script>'use strict';
 
        <script>
 
         'use strict';
 
         $(document).ready(function(){
 
            $('#email').focus();
 
         });
kallithea/templates/pullrequests/pullrequest.html
Show inline comments
 
@@ -92,7 +92,8 @@ ${self.repo_context_bar('showpullrequest
 
</div>
 

	
 
<script src="${h.url('/js/graph.js', ver=c.kallithea_version)}"></script>
 
<script>'use strict';
 
<script>
 
  'use strict';
 
  pyroutes.register('pullrequest_repo_info', ${h.js(url('pullrequest_repo_info',repo_name='%(repo_name)s'))}, ['repo_name']);
 

	
 
  var pendingajax = undefined;
kallithea/templates/pullrequests/pullrequest_show.html
Show inline comments
 
@@ -312,7 +312,8 @@ ${self.repo_context_bar('showpullrequest
 
            </div>
 
        </div>
 
    </div>
 
    <script>'use strict';
 
    <script>
 
    'use strict';
 
    // TODO: switch this to pyroutes
 
    var AJAX_COMMENT_URL = ${h.js(url('pullrequest_comment',repo_name=c.repo_name,pull_request_id=c.pull_request.pull_request_id))};
 
    var AJAX_COMMENT_DELETE_URL = ${h.js(url('pullrequest_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__'))};
 
@@ -343,7 +344,8 @@ ${self.repo_context_bar('showpullrequest
 
    ## main comment form and it status
 
    ${comment.comments(change_status=c.allowed_to_change_status)}
 

	
 
    <script>'use strict';
 
    <script>
 
      'use strict';
 
      $(document).ready(function(){
 
          PullRequestAutoComplete($('#user'));
 
          SimpleUserAutoComplete($('#owner'));
kallithea/templates/register.html
Show inline comments
 
@@ -90,7 +90,8 @@
 
                </div>
 
        </div>
 
        ${h.end_form()}
 
        <script>'use strict';
 
        <script>
 
        'use strict';
 
        $(document).ready(function(){
 
            $('#username').focus();
 
        });
kallithea/templates/summary/statistics.html
Show inline comments
 
@@ -51,7 +51,8 @@ ${self.repo_context_bar('summary')}
 
    </div>
 
</div>
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 
var data = ${h.js(c.trending_languages)};
 
var total = 0;
 
var tbl = document.createElement('table');
 
@@ -118,7 +119,8 @@ for (let i=0;i<data.length;i++){
 
}
 

	
 
</script>
 
<script>'use strict';
 
<script>
 
'use strict';
 

	
 
/**
 
 * Plots summary graph
kallithea/templates/summary/summary.html
Show inline comments
 
@@ -27,7 +27,8 @@
 
  <link href="${h.url('atom_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" />
 
  <link href="${h.url('rss_feed_home',repo_name=c.db_repo.repo_name,api_key=request.authuser.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" />
 

	
 
  <script>'use strict';
 
  <script>
 
  'use strict';
 
  function redirect_hash_branch(){
 
    var branch = window.location.hash.replace(/^#(.*)/, '$1');
 
    if (branch){
 
@@ -238,7 +239,8 @@ hg push ${c.clone_repo_url}
 
</div>
 
%endif
 

	
 
<script>'use strict';
 
<script>
 
'use strict';
 
$(document).ready(function(){
 
    $('#clone-url input').click(function(){
 
        if($(this).hasClass('selected')){
 
@@ -334,7 +336,8 @@ $(document).ready(function(){
 
</script>
 

	
 
%if c.show_stats:
 
<script>'use strict';
 
<script>
 
'use strict';
 
$(document).ready(function(){
 
    var data = ${h.js(c.trending_languages)};
 
    var total = 0;
0 comments (0 inline, 0 general)