Changeset - df5b6fc6c518
[Not reviewed]
default
0 39 0
Mads Kiilerich - 10 years ago 2015-05-27 23:15:36
madski@unity3d.com
javascript: add missing semicolons
39 files changed with 92 insertions and 92 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/base.js
Show inline comments
 
@@ -2059,7 +2059,7 @@ var YUI_paginator = function(links_per_p
 
        nextPageLinkLabel: '>',
 
        previousPageLinkLabel: '<',
 
        containers:containers
 
    })
 
    });
 

	
 
    return pagi
 
}
kallithea/templates/admin/gists/edit.html
Show inline comments
 
@@ -164,7 +164,7 @@
 
                        $('#eform').submit();
 
                      }
 
                    }
 
                  })
 
                  });
 
              });
 
          </script>
 
        </div>
kallithea/templates/admin/my_account/my_account_api_keys.html
Show inline comments
 
@@ -79,5 +79,5 @@
 
        $("#lifetime").select2({
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
    });
 
</script>
kallithea/templates/admin/my_account/my_account_repos.html
Show inline comments
 
@@ -30,7 +30,7 @@ function table_renderer(data){
 
        if (req) {
 
            req = req.toLowerCase();
 
            for (i = 0; i<data.length; i++) {
 
                var pos = data[i].raw_name.toLowerCase().indexOf(req)
 
                var pos = data[i].raw_name.toLowerCase().indexOf(req);
 
                if (pos != -1) {
 
                    filtered.push(data[i]);
 
                }
kallithea/templates/admin/my_account/my_account_watched.html
Show inline comments
 
@@ -30,7 +30,7 @@ function table_renderer(data){
 
        if (req) {
 
            req = req.toLowerCase();
 
            for (i = 0; i<data.length; i++) {
 
                var pos = data[i].raw_name.toLowerCase().indexOf(req)
 
                var pos = data[i].raw_name.toLowerCase().indexOf(req);
 
                if (pos != -1) {
 
                    filtered.push(data[i]);
 
                }
kallithea/templates/admin/notifications/show_notification.html
Show inline comments
 
@@ -48,7 +48,7 @@ var url = "${url('notification', notific
 
var main = "${url('notifications')}";
 
   $('.delete-notification').click(function(e){
 
       var notification_id = e.currentTarget.id;
 
       deleteNotification(url,notification_id,[function(){window.location=main}])
 
       deleteNotification(url,notification_id,[function(){window.location=main}]);
 
   });
 
</script>
 
</%def>
kallithea/templates/admin/repo_groups/repo_group_add.html
Show inline comments
 
@@ -76,7 +76,7 @@
 
    $(document).ready(function(){
 
        var setCopyPermsOption = function(group_val){
 
            if(group_val != "-1"){
 
                $('#copy_perms').show()
 
                $('#copy_perms').show();
 
            }
 
            else{
 
                $('#copy_perms').hide();
 
@@ -85,11 +85,11 @@
 
        $("#group_parent_id").select2({
 
            'dropdownAutoWidth': true
 
        });
 
        setCopyPermsOption($('#group_parent_id').val())
 
        setCopyPermsOption($('#group_parent_id').val());
 
        $("#group_parent_id").on("change", function(e) {
 
            setCopyPermsOption(e.val)
 
        })
 
            setCopyPermsOption(e.val);
 
        });
 
        $('#group_name').focus();
 
    })
 
    });
 
</script>
 
</%def>
kallithea/templates/admin/repo_groups/repo_group_edit_advanced.html
Show inline comments
 
@@ -7,7 +7,7 @@
 
    (_('Total repositories'), c.repo_group.repositories_recursive_count, ''),
 
    (_('Children groups'), c.repo_group.children.count(), ''),
 
    (_('Created on'), h.fmt_date(c.repo_group.created_on), ''),
 
    (_('Owner'), h.person(c.repo_group.user), '')
 
    (_('Owner'), h.person(c.repo_group.user), ''),
 
 ]
 
%>
 
%for dt, dd, tt in elems:
kallithea/templates/admin/repo_groups/repo_group_edit_settings.html
Show inline comments
 
@@ -61,5 +61,5 @@ ${h.end_form()}
 
        $("#group_parent_id").select2({
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
    });
 
</script>
kallithea/templates/admin/repos/repo_add_base.html
Show inline comments
 
@@ -90,7 +90,7 @@ ${h.form(url('repos'))}
 
    $(document).ready(function(){
 
        var setCopyPermsOption = function(group_val){
 
            if(group_val != "-1"){
 
                $('#copy_perms').show()
 
                $('#copy_perms').show();
 
            }
 
            else{
 
                $('#copy_perms').hide();
 
@@ -100,7 +100,7 @@ ${h.form(url('repos'))}
 
        $('#remote_clone_toggle').on('click', function(e){
 
            $('#remote_clone').show();
 
            e.preventDefault();
 
        })
 
        });
 
        if($('#remote_clone input').hasClass('error')){
 
            $('#remote_clone').show();
 
        }
 
@@ -111,10 +111,10 @@ ${h.form(url('repos'))}
 
            'dropdownAutoWidth': true
 
        });
 

	
 
        setCopyPermsOption($('#repo_group').val())
 
        setCopyPermsOption($('#repo_group').val());
 
        $("#repo_group").on("change", function(e) {
 
            setCopyPermsOption(e.val)
 
        })
 
            setCopyPermsOption(e.val);
 
        });
 

	
 
        $("#repo_type").select2({
 
            'minimumResultsForSearch': -1
 
@@ -123,6 +123,6 @@ ${h.form(url('repos'))}
 
            'minimumResultsForSearch': -1
 
        });
 
        $('#repo_name').focus();
 
    })
 
    });
 
</script>
 
${h.end_form()}
kallithea/templates/admin/repos/repo_creating.html
Show inline comments
 
@@ -57,7 +57,7 @@
 
          setTimeout(worker, 1000);
 
      }
 
      else{
 
          $("#progress").html($('#progress_error').html())
 
          $("#progress").html($('#progress_error').html());
 
      }
 
    }
 
  });
kallithea/templates/admin/repos/repo_edit_advanced.html
Show inline comments
 
@@ -16,7 +16,7 @@ ${h.end_form()}
 
        $("#id_fork_of").select2({
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
    });
 
</script>
 

	
 
<h3>${_('Public Journal Visibility')}</h3>
kallithea/templates/admin/repos/repo_edit_fork.html
Show inline comments
 
@@ -17,5 +17,5 @@ ${h.end_form()}
 
        $("#id_fork_of").select2({
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
    });
 
</script>
kallithea/templates/admin/repos/repo_edit_settings.html
Show inline comments
 
@@ -143,15 +143,15 @@ ${h.form(url('repo', repo_name=c.repo_in
 
        $('#show_more_clone_id').on('click', function(e){
 
            $('#clone_id').show();
 
            e.preventDefault();
 
        })
 
        });
 
        $('#edit_clone_uri').on('click', function(e){
 
          $('#alter_clone_uri').show();
 
          $('#edit_clone_uri').hide();
 
          $('#clone_uri_hidden').hide();
 
          ## store hash of old value for change detection
 
          var uri_change =  '<input id="clone_uri_change" name="clone_uri_change" type="hidden" value="${h.md5(c.repo_info.clone_uri or "").hexdigest()}" />';
 
          $('#alter_clone_uri_help_block').html($('#alter_clone_uri_help_block').html()+" ("+$('#clone_uri_hidden_value').html()+")")
 
        })
 
          $('#alter_clone_uri_help_block').html($('#alter_clone_uri_help_block').html()+" ("+$('#clone_uri_hidden_value').html()+")");
 
        });
 

	
 
        $('#repo_landing_rev').select2({
 
            'dropdownAutoWidth': true
 
@@ -160,5 +160,5 @@ ${h.form(url('repo', repo_name=c.repo_in
 
            'dropdownAutoWidth': true
 
        });
 

	
 
    })
 
    });
 
</script>
kallithea/templates/admin/settings/settings_email.html
Show inline comments
 
@@ -13,7 +13,7 @@
 

	
 
    (_('SMTP use TLS'), c.ini.get('smtp_use_tls'), ''),
 
    (_('SMTP use SSL'), c.ini.get('smtp_use_ssl'), ''),
 
    (_('SMTP auth'), c.ini.get('smtp_auth'), '')
 
    (_('SMTP auth'), c.ini.get('smtp_auth'), ''),
 
 ]
 
%>
 
%for dt, dd, tt in elems:
kallithea/templates/admin/settings/settings_system.html
Show inline comments
 
@@ -6,7 +6,7 @@
 
    (_('Platform'), c.platform, ''),
 
    (_('Git version'), c.git_version, ''),
 
    (_('Git path'), c.ini.get('git_path'), ''),
 
    (_('Upgrade info endpoint'), h.literal('%s <br/><span style="color:#999999">%s.</span>' % (c.update_url, _('Note: please make sure this server can access this URL'))), '')
 
    (_('Upgrade info endpoint'), h.literal('%s <br/><span style="color:#999999">%s.</span>' % (c.update_url, _('Note: please make sure this server can access this URL'))), ''),
 
 ]
 
%>
 

	
kallithea/templates/admin/settings/settings_vcs.html
Show inline comments
 
@@ -91,6 +91,6 @@ ${h.form(url('admin_settings'), method='
 
                $('#path_unlock_icon').addClass('icon-lock-open-alt');
 
                $('#paths_root_path').removeAttr('readonly');
 
                $('#paths_root_path').removeClass('disabled');
 
            })
 
        })
 
            });
 
        });
 
    </script>
kallithea/templates/admin/user_groups/user_group_add.html
Show inline comments
 
@@ -64,6 +64,6 @@
 
<script>
 
    $(document).ready(function(){
 
        $('#users_group_name').focus();
 
    })
 
    });
 
</script>
 
</%def>
kallithea/templates/admin/user_groups/user_group_edit_advanced.html
Show inline comments
 
@@ -5,7 +5,7 @@
 
 elems = [
 
    (_('Members'), len(c.group_members_obj), ''),
 
    (_('Created on'), h.fmt_date(c.user_group.created_on), ''),
 
    (_('Owner'), h.person(c.user_group.user), '')
 
    (_('Owner'), h.person(c.user_group.user), ''),
 
    ]
 
%>
 
%for dt, dd, tt in elems:
kallithea/templates/admin/users/user_add.html
Show inline comments
 
@@ -103,6 +103,6 @@
 
<script>
 
    $(document).ready(function(){
 
        $('#username').focus();
 
    })
 
    });
 
</script>
 
</%def>
kallithea/templates/admin/users/user_edit_advanced.html
Show inline comments
 
@@ -7,7 +7,7 @@
 
    (_('Source of Record'), c.user.extern_type, ''),
 
    (_('Created on'), h.fmt_date(c.user.created_on), ''),
 
    (_('Last Login'), c.user.last_login or '-', ''),
 
    (_('Member of User groups'), len(c.user.group_member), ', '.join((x.users_group.users_group_name for x in c.user.group_member)))
 
    (_('Member of User groups'), len(c.user.group_member), ', '.join((x.users_group.users_group_name for x in c.user.group_member))),
 
 ]
 
%>
 
%for dt, dd, tt in elems:
kallithea/templates/admin/users/user_edit_api_keys.html
Show inline comments
 
@@ -79,5 +79,5 @@
 
        $("#lifetime").select2({
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
    });
 
</script>
kallithea/templates/base/base.html
Show inline comments
 
@@ -419,11 +419,11 @@
 
                    var children = [];
 
                    $.each(this.children, function(){
 
                        if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
 
                            children.push({'id': this.id, 'text': this.text, 'type': this.type, 'obj': this.obj})
 
                            children.push({'id': this.id, 'text': this.text, 'type': this.type, 'obj': this.obj});
 
                        }
 
                    })
 
                    });
 
                    if(children.length !== 0){
 
                        data.results.push({'text': section, 'children': children})
 
                        data.results.push({'text': section, 'children': children});
 
                    }
 

	
 
                });
 
@@ -438,21 +438,21 @@
 
                      cache[key] = data;
 
                      query.callback({results: data.results});
 
                    }
 
                  })
 
                  });
 
              }
 
            }
 
        });
 

	
 
        $("#repo_switcher").on('select2-selecting', function(e){
 
            e.preventDefault();
 
            window.location = pyroutes.url('summary_home', {'repo_name': e.val})
 
        })
 
            window.location = pyroutes.url('summary_home', {'repo_name': e.val});
 
        });
 

	
 
        ## Global mouse bindings ##
 

	
 
        // general help "?"
 
        Mousetrap.bind(['?'], function(e) {
 
            $('#help_kb').modal({})
 
            $('#help_kb').modal({});
 
        });
 

	
 
        // / open the quick filter
 
@@ -544,7 +544,7 @@
 
                         ('g g', 'Goto my private gists page'),
 
                         ('g G', 'Goto my public gists page'),
 
                         ('n r', 'New repository page'),
 
                         ('n g', 'New gist page')
 
                         ('n g', 'New gist page'),
 
                     ]
 
                  %>
 
                  %for key, desc in elems:
 
@@ -572,7 +572,7 @@
 
                         ('g f', 'Goto files page'),
 
                         ('g F', 'Goto files page with file search activated'),
 
                         ('g o', 'Goto repository settings'),
 
                         ('g O', 'Goto repository permissions settings')
 
                         ('g O', 'Goto repository permissions settings'),
 
                     ]
 
                  %>
 
                  %for key, desc in elems:
kallithea/templates/base/default_perms_box.html
Show inline comments
 
@@ -83,7 +83,7 @@ $(document).ready(function(e){
 
    $('#inherit_default_permissions').change(function(){
 
        show_custom_perms($('#inherit_default_permissions').prop('checked'));
 
    });
 
})
 
});
 
</script>
 

	
 
</%def>
kallithea/templates/base/perms_summary.html
Show inline comments
 
@@ -123,6 +123,6 @@
 
        }
 
        $('.perm_filter').on('change', function(){update_show($(this));});
 
        $('.perm_filter[value=none]').each(function(){this.checked = false; update_show($(this));});
 
    })
 
    });
 
</script>
 
</%def>
kallithea/templates/changelog/changelog.html
Show inline comments
 
@@ -210,7 +210,7 @@ ${self.repo_context_bar('changelog', c.f
 
                        YUD.get('open_new_pr').href = pyroutes.url('pullrequest_home',
 
                                                                   {'repo_name': '${c.repo_name}',
 
                                                                    'rev_start': rev_start,
 
                                                                    'rev_end': rev_end})
 
                                                                    'rev_end': rev_end});
 

	
 
                        YUD.setStyle('compare_fork','display','none');
 
                    }else{
kallithea/templates/changeset/changeset.html
Show inline comments
 
@@ -246,7 +246,7 @@ ${self.repo_context_bar('changelog', c.c
 
                  });
 
              e.preventDefault();
 
              }
 
          })
 
          });
 

	
 
          //prev links
 
          $('#parent_link').on('click', function(e){
 
@@ -289,7 +289,7 @@ ${self.repo_context_bar('changelog', c.c
 
          if (window.location.hash != "") {
 
              window.location.href = window.location.href;
 
          }
 
      })
 
      });
 

	
 
    </script>
 

	
kallithea/templates/compare/compare_diff.html
Show inline comments
 
@@ -113,14 +113,14 @@ ${self.repo_context_bar('changelog')}
 
                var children = [];
 
                $.each(this.children, function(){
 
                    if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
 
                        children.push({'id': this.id, 'text': this.text})
 
                        children.push({'id': this.id, 'text': this.text});
 
                    }
 
                })
 
                data.results.push({'text': section, 'children': children})
 
                });
 
                data.results.push({'text': section, 'children': children});
 
            });
 
            //push the typed in changeset
 
            data.results.push({'text':_TM['Specify changeset'],
 
                               'children': [{'id': query.term, 'text': query.term, 'type': 'rev'}]})
 
                               'children': [{'id': query.term, 'text': query.term, 'type': 'rev'}]});
 
            query.callback(data);
 
          }else{
 
              $.ajax({
 
@@ -132,7 +132,7 @@ ${self.repo_context_bar('changelog')}
 
                  cache[key] = data;
 
                  query.callback(data);
 
                }
 
              })
 
              });
 
          }
 
        }
 
    });
 
@@ -140,7 +140,7 @@ ${self.repo_context_bar('changelog')}
 
        placeholder: "${'%s@%s' % (c.cs_repo.repo_name, c.cs_ref_name)}",
 
        dropdownAutoWidth: true,
 
        formatSelection: function(obj){
 
            return '{0}@{1}'.format("${c.cs_repo.repo_name}", obj.text)
 
            return '{0}@{1}'.format("${c.cs_repo.repo_name}", obj.text);
 
        },
 
        query: function(query){
 
          var key = 'cache2';
 
@@ -153,14 +153,14 @@ ${self.repo_context_bar('changelog')}
 
                var children = [];
 
                $.each(this.children, function(){
 
                    if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
 
                        children.push({'id': this.id, 'text': this.text})
 
                        children.push({'id': this.id, 'text': this.text});
 
                    }
 
                })
 
                data.results.push({'text': section, 'children': children})
 
                });
 
                data.results.push({'text': section, 'children': children});
 
            });
 
            //push the typed in changeset
 
            data.results.push({'text':_TM['Specify changeset'],
 
                               'children': [{'id': query.term, 'text': query.term, 'type': 'rev'}]})
 
                               'children': [{'id': query.term, 'text': query.term, 'type': 'rev'}]});
 
            query.callback(data);
 
          }else{
 
              $.ajax({
 
@@ -172,7 +172,7 @@ ${self.repo_context_bar('changelog')}
 
                  cache[key] = data;
 
                  query.callback({results: data.results});
 
                }
 
              })
 
              });
 
          }
 
        }
 
    });
kallithea/templates/files/diff_2way.html
Show inline comments
 
@@ -75,7 +75,7 @@ $(document).ready(function () {
 
        cmsettings: {mode: 'text/plain', readOnly: true, lineWrapping: false, lineNumbers: true},
 
        lhs: function(setValue) {
 
            if("${c.node1.is_binary}" == "True"){
 
                setValue('Binary file')
 
                setValue('Binary file');
 
            }
 
            else{
 
                $.ajax(orig1_url, {dataType: 'text', success: setValue});
 
@@ -84,7 +84,7 @@ $(document).ready(function () {
 
        },
 
        rhs: function(setValue) {
 
            if("${c.node2.is_binary}" == "True"){
 
                setValue('Binary file')
 
                setValue('Binary file');
 
            }
 
            else{
 
                $.ajax(orig2_url, {dataType: 'text', success: setValue});
 
@@ -95,13 +95,13 @@ $(document).ready(function () {
 
        var val = e.currentTarget.checked;
 
        $('#compare').mergely('options', {ignorews: val});
 
        $('#compare').mergely('update');
 
    })
 
    });
 
    $('#edit_mode').change(function(e){
 
        var val = !e.currentTarget.checked;
 
        $('#compare').mergely('cm', 'lhs').setOption('readOnly', val);
 
        $('#compare').mergely('cm', 'rhs').setOption('readOnly', val);
 
        $('#compare').mergely('update');
 
    })
 
    });
 
});
 
</script>
 

	
kallithea/templates/files/files.html
Show inline comments
 
@@ -64,10 +64,10 @@ var ypjax_links = function(){
 
        var url = el.href;
 

	
 
        var _base_url = '${h.url("files_home",repo_name=c.repo_name,revision='',f_path='')}';
 
        _base_url = _base_url.replace('//','/')
 
        _base_url = _base_url.replace('//','/');
 

	
 
        //extract rev and the f_path from url.
 
        parts = url.split(_base_url)
 
        parts = url.split(_base_url);
 
        if(parts.length != 2){
 
            return false;
 
        }
 
@@ -145,7 +145,7 @@ var callbacks = function(State){
 
    $('#hlcode').mouseup(getSelectionLink);
 

	
 
    // history select field
 
    var cache = {}
 
    var cache = {};
 
    $("#diff1").select2({
 
        placeholder: _TM['Select changeset'],
 
        dropdownAutoWidth: true,
 
@@ -160,10 +160,10 @@ var callbacks = function(State){
 
                var children = [];
 
                $.each(this.children, function(){
 
                    if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
 
                        children.push({'id': this.id, 'text': this.text})
 
                        children.push({'id': this.id, 'text': this.text});
 
                    }
 
                })
 
                data.results.push({'text': section, 'children': children})
 
                });
 
                data.results.push({'text': section, 'children': children});
 
            });
 
            query.callback(data);
 
          }else{
 
@@ -176,7 +176,7 @@ var callbacks = function(State){
 
                  cache[key] = data;
 
                  query.callback({results: data.results});
 
                }
 
              })
 
              });
 
          }
 
        }
 
    });
 
@@ -186,10 +186,10 @@ var callbacks = function(State){
 
            success: function(data) {
 
                $('#file_authors').html(data);
 
                $('#file_authors').show();
 
                tooltip_activate()
 
                tooltip_activate();
 
            }
 
        })
 
    })
 
        });
 
    });
 
}
 

	
 
$(document).ready(function(){
kallithea/templates/files/files_browser.html
Show inline comments
 
@@ -122,5 +122,5 @@
 
        if(search_GET == "1"){
 
            $("#filter_activate").click();
 
        }
 
    })
 
    });
 
</script>
kallithea/templates/files/files_edit.html
Show inline comments
 
@@ -98,7 +98,7 @@ $(document).ready(function(){
 
    var detected_mode = CodeMirror.findModeByExtension("${c.file.extension}");
 
    if(detected_mode){
 
        setCodeMirrorMode(myCodeMirror, detected_mode);
 
        $($('#set_mode option[value="'+detected_mode.mime+'"]')[0]).attr("selected", "selected")
 
        $($('#set_mode option[value="'+detected_mode.mime+'"]')[0]).attr("selected", "selected");
 
    }
 

	
 
    $('#set_mode').on('change', function(e){
 
@@ -107,6 +107,6 @@ $(document).ready(function(){
 
        var detected_mode = CodeMirror.findModeByMIME(node.value);
 
        setCodeMirrorMode(myCodeMirror, detected_mode);
 
    });
 
})
 
});
 
</script>
 
</%def>
kallithea/templates/files/files_source.html
Show inline comments
 
@@ -90,5 +90,5 @@
 
           }
 
        }
 
        callbacks(_State) // defined in files.html, main callbacks. Triggerd in pjax calls
 
    })
 
    });
 
</script>
kallithea/templates/forks/fork.html
Show inline comments
 
@@ -108,6 +108,6 @@ ${self.repo_context_bar('createfork')}
 
            'minimumResultsForSearch': -1
 
        });
 
        $('#repo_name').focus();
 
    })
 
    });
 
</script>
 
</%def>
kallithea/templates/index_base.html
Show inline comments
 
@@ -112,7 +112,7 @@
 
            if (req) {
 
                req = req.toLowerCase();
 
                for (i = 0; i<data.length; i++) {
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req, ${len(group_name)})
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req, ${len(group_name)});
 
                    if (pos != -1) {
 
                        filtered.push(data[i]);
 
                    }
kallithea/templates/journal/journal.html
Show inline comments
 
@@ -172,7 +172,7 @@
 
            if (req) {
 
                req = req.toLowerCase();
 
                for (i = 0; i<data.length; i++) {
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req)
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req);
 
                    if (pos != -1) {
 
                        filtered.push(data[i]);
 
                    }
 
@@ -263,7 +263,7 @@
 
            if (req) {
 
                req = req.toLowerCase();
 
                for (i = 0; i<data.length; i++) {
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req)
 
                    var pos = data[i].raw_name.toLowerCase().indexOf(req);
 
                    if (pos != -1) {
 
                        filtered.push(data[i]);
 
                    }
kallithea/templates/search/search.html
Show inline comments
 
@@ -64,8 +64,8 @@ ${self.repo_context_bar('options')}
 
                <div class="select">
 
                    ${h.select('type',c.cur_type,[('content',_('File contents')),
 
                        ('commit',_('Commit messages')),
 
                        ('path',_('File names'))
 
                        ##('repository',_('Repository names'))
 
                        ('path',_('File names')),
 
                        ##('repository',_('Repository names')),
 
                        ])}
 
                </div>
 
             </div>
kallithea/templates/summary/statistics.html
Show inline comments
 
@@ -379,7 +379,7 @@ function SummaryPlot(from,to,dataset,ove
 
                    item.series.label = 'commits';
 
                }
 
                var d = new Date(x*1000);
 
                var fd = d.toDateString()
 
                var fd = d.toDateString();
 
                var nr_commits = parseInt(y);
 

	
 
                var cur_data = dataset[item.series.label].data[item.dataIndex];
 
@@ -433,7 +433,7 @@ function SummaryPlot(from,to,dataset,ove
 
    overview.setSelection(initial_ranges);
 

	
 
    plot.subscribe("plotselected", plotselected);
 
    plot.subscribe("plothover", plothover)
 
    plot.subscribe("plothover", plothover);
 

	
 
    overview.subscribe("plotselected", function (ranges) {
 
        plot.setSelection(ranges);
kallithea/templates/summary/summary.html
Show inline comments
 
@@ -267,10 +267,10 @@ $(document).ready(function(){
 
                var children = [];
 
                $.each(this.children, function(){
 
                    if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
 
                        children.push({'id': this.id, 'text': this.text})
 
                        children.push({'id': this.id, 'text': this.text});
 
                    }
 
                })
 
                data.results.push({'text': section, 'children': children})
 
                });
 
                data.results.push({'text': section, 'children': children});
 
            });
 
            query.callback(data);
 
          }else{
 
@@ -283,7 +283,7 @@ $(document).ready(function(){
 
                  cache[key] = data;
 
                  query.callback({results: data.results});
 
                }
 
              })
 
              });
 
          }
 
        }
 
    });
 
@@ -303,7 +303,7 @@ $(document).ready(function(){
 
             url = url.replace('__SUB__',subrepos);
 
             url = url.replace('__NAME__',title_tmpl);
 

	
 
             s.html(url)
 
             s.html(url);
 
           }
 
       }
 
    });
 
@@ -312,7 +312,7 @@ $(document).ready(function(){
 
    %for cnt,archive in enumerate(c.db_repo_scm_instance._get_archives()):
 
      tmpl_links["${archive['type']}"] = '${h.link_to('__NAME__', h.url('files_archive_home',repo_name=c.db_repo.repo_name, fname='__CS__'+archive['extension'],subrepos='__SUB__'),class_='btn btn-small')}';
 
    %endfor
 
})
 
});
 
</script>
 

	
 
%if c.show_stats:
0 comments (0 inline, 0 general)