Changeset - b3f12c354e87
[Not reviewed]
default
0 38 0
Mads Kiilerich - 11 years ago 2014-09-24 14:24:40
madski@unity3d.com
javascript: remove nice trailing comma to please IE8 (Issue #39)
38 files changed with 104 insertions and 109 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/base.js
Show inline comments
 
@@ -393,7 +393,7 @@ var ajaxGET = function(url,success) {
 
            if (o.status != 0) {
 
                alert("Ajax GET error: " + o.statusText);
 
            };
 
        },
 
        }
 
    };
 

	
 
    var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
 
@@ -409,7 +409,7 @@ var ajaxPOST = function(url,postData,suc
 
        success: success,
 
        failure: function (o) {
 
            alert("Ajax POST error: " + o.statusText);
 
        },
 
        }
 
    };
 
    var postData = _toQueryString(postData);
 
    var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
 
@@ -989,7 +989,7 @@ var initCodeMirror = function(textarea_i
 
            mode: "null",
 
            lineNumbers: true,
 
            indentUnit: 4,
 
            autofocus: true,
 
            autofocus: true
 
        });
 
    $('#reset').click(function(e){
 
            window.location=resetUrl;
 
@@ -1082,7 +1082,7 @@ var deleteNotification = function(url, n
 
        },
 
        failure:function(o){
 
            alert("deleteNotification failure");
 
        },
 
        }
 
    };
 
    var postData = '_method=delete';
 
    var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
 
@@ -1100,7 +1100,7 @@ var readNotification = function(url, not
 
        },
 
        failure:function(o){
 
            alert("readNotification failure");
 
        },
 
        }
 
    };
 
    var postData = '_method=put';
 
    var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
 
@@ -1282,7 +1282,7 @@ var _MembersAutoComplete = function (div
 
        memberDS: memberDS,
 
        ownerDS: ownerDS,
 
        membersAC: membersAC,
 
        ownerAC: ownerAC,
 
        ownerAC: ownerAC
 
    };
 
}
 

	
 
@@ -1741,7 +1741,7 @@ function ajaxActionRevokePermission(url,
 
        },
 
        failure: function (o) {
 
            alert(_TM['Failed to revoke permission'] + ": " + o.status);
 
        },
 
        }
 
    };
 
    query_params = {
 
        '_method': 'delete'
 
@@ -2092,7 +2092,7 @@ var YUI_datatable = function(data, field
 
    myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
 
    myDataSource.responseSchema = {
 
        resultsList: "records",
 
        fields: fields,
 
        fields: fields
 
        };
 
    myDataSource.doBeforeCallback = function(req, raw, res, cb) {
 
        // This is the filter function
 
@@ -2121,7 +2121,7 @@ var YUI_datatable = function(data, field
 
        MSG_SORTDESC: _TM['MSG_SORTDESC'],
 
        MSG_EMPTY: _TM['MSG_EMPTY'],
 
        MSG_ERROR: _TM['MSG_ERROR'],
 
        MSG_LOADING: _TM['MSG_LOADING'],
 
        MSG_LOADING: _TM['MSG_LOADING']
 
        });
 
    myDataTable.subscribe('postRenderEvent',function(oArgs) {
 
        tooltip_activate();
kallithea/templates/admin/my_account/my_account_api_keys.html
Show inline comments
 
@@ -77,7 +77,7 @@
 
<script>
 
    $(document).ready(function(){
 
        $("#lifetime").select2({
 
            'dropdownAutoWidth': true,
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
</script>
kallithea/templates/admin/my_account/my_account_repos.html
Show inline comments
 
@@ -18,7 +18,7 @@ function table_renderer(data){
 
            {key:"name"},
 
            {key:"last_changeset"},
 
            {key:"last_rev_raw"},
 
            {key:"action"},
 
            {key:"action"}
 
            ]
 
        };
 
    myDataSource.doBeforeCallback = function(req,raw,res,cb) {
 
@@ -47,7 +47,7 @@ function table_renderer(data){
 
              sortOptions: { sortFunction: nameSort }},
 
          {key:"last_changeset",label:"${_('Tip')}",sortable:true,
 
              sortOptions: { sortFunction: revisionSort }},
 
          {key:"action",label:"${_('Action')}",sortable:false},
 
          {key:"action",label:"${_('Action')}",sortable:false}
 
      ];
 

	
 
      var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
 
@@ -58,7 +58,7 @@ function table_renderer(data){
 
        MSG_SORTDESC:"${_('Click to sort descending')}",
 
        MSG_EMPTY:"${_('No records found.')}",
 
        MSG_ERROR:"${_('Data error.')}",
 
        MSG_LOADING:"${_('Loading...')}",
 
        MSG_LOADING:"${_('Loading...')}"
 
      }
 
      );
 
      myDataTable.subscribe('postRenderEvent',function(oArgs) {
kallithea/templates/admin/my_account/my_account_watched.html
Show inline comments
 
@@ -18,7 +18,7 @@ function table_renderer(data){
 
            {key:"name"},
 
            {key:"last_changeset"},
 
            {key:"last_rev_raw"},
 
            {key:"action"},
 
            {key:"action"}
 
            ]
 
        };
 
    myDataSource.doBeforeCallback = function(req,raw,res,cb) {
 
@@ -47,7 +47,7 @@ function table_renderer(data){
 
              sortOptions: { sortFunction: nameSort }},
 
          {key:"last_changeset",label:"${_('Tip')}",sortable:true,
 
              sortOptions: { sortFunction: revisionSort }},
 
          {key:"action",label:"${_('Action')}",sortable:false},
 
          {key:"action",label:"${_('Action')}",sortable:false}
 
      ];
 

	
 
      var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
 
@@ -58,7 +58,7 @@ function table_renderer(data){
 
        MSG_SORTDESC:"${_('Click to sort descending')}",
 
        MSG_EMPTY:"${_('No records found.')}",
 
        MSG_ERROR:"${_('Data error.')}",
 
        MSG_LOADING:"${_('Loading...')}",
 
        MSG_LOADING:"${_('Loading...')}"
 
      }
 
      );
 
      myDataTable.subscribe('postRenderEvent',function(oArgs) {
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.username), ''),
 
    (_('Owner'), h.person(c.repo_group.user.username), '')
 
 ]
 
%>
 
%for dt, dd, tt in elems:
kallithea/templates/admin/repo_groups/repo_groups.html
Show inline comments
 
@@ -43,15 +43,14 @@
 
    {key: "desc"},
 
    {key: "repos"},
 
    {key: "owner"},
 
    {key: "action"},
 

	
 
    {key: "action"}
 
  ];
 
  var column_defs = [
 
    {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
 
    {key:"desc",label:"${_('Description')}",sortable:true},
 
    {key:"repos",label:"${_('Number of toplevel repositories')}",sortable:true},
 
    {key:"owner",label:"${_('Owner')}",sortable:true},
 
    {key:"action",label:"${_('Action')}",sortable:false},
 
    {key:"action",label:"${_('Action')}",sortable:false}
 
  ];
 
  var counter = YUD.get('repo_group_count');
 
  var sort_key = "group_name";
kallithea/templates/admin/repos/repo_add_base.html
Show inline comments
 
@@ -117,10 +117,10 @@ ${h.form(url('repos'))}
 
        })
 

	
 
        $("#repo_type").select2({
 
            'minimumResultsForSearch': -1,
 
            'minimumResultsForSearch': -1
 
        });
 
        $("#repo_landing_rev").select2({
 
            'minimumResultsForSearch': -1,
 
            'minimumResultsForSearch': -1
 
        });
 
        $('#repo_name').focus();
 
    })
kallithea/templates/admin/repos/repo_edit_advanced.html
Show inline comments
 
@@ -3,7 +3,7 @@ ${h.form(url('edit_repo_advanced_fork', 
 
<div class="form">
 
   <div class="fields">
 
       ${h.select('id_fork_of','',c.repos_list,class_="medium")}
 
       ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
 
       ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")}
 
   </div>
 
       <div class="field" style="border:none;color:#888">
 
       <ul>
 
@@ -16,7 +16,7 @@ ${h.end_form()}
 
<script>
 
    $(document).ready(function(){
 
        $("#id_fork_of").select2({
 
            'dropdownAutoWidth': true,
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
</script>
kallithea/templates/admin/repos/repo_edit_fork.html
Show inline comments
 
@@ -2,7 +2,7 @@ ${h.form(url('repo_as_fork', repo_name=c
 
<div class="form">
 
   <div class="fields">
 
       ${h.select('id_fork_of','',c.repos_list,class_="medium")}
 
       ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
 
       ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")}
 
   </div>
 
       <div class="field" style="border:none;color:#888">
 
       <ul>
 
@@ -15,7 +15,7 @@ ${h.end_form()}
 
<script>
 
    $(document).ready(function(){
 
        $("#id_fork_of").select2({
 
            'dropdownAutoWidth': true,
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
</script>
kallithea/templates/admin/repos/repos.html
Show inline comments
 
@@ -43,7 +43,7 @@
 
    {key:"last_rev_raw"},
 
    {key:"owner"},
 
    {key:"state"},
 
    {key:"action"},
 
    {key:"action"}
 
  ];
 
  var column_defs = [
 
    {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
 
@@ -52,7 +52,7 @@
 
    {key:"last_changeset",label:"${_('Tip')}",sortable:true, sortOptions: { sortFunction: revisionSort }},
 
    {key:"owner",label:"${_('Owner')}",sortable:true},
 
    {key:"state",label:"${_('State')}",sortable:true},
 
    {key:"action",label:"${_('Action')}",sortable:false},
 
    {key:"action",label:"${_('Action')}",sortable:false}
 
  ];
 
  var counter = YUD.get('repo_count');
 
  var sort_key = "name";
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_hooks.html
Show inline comments
 
@@ -67,7 +67,7 @@ function ajaxActionHook(hook_id,field_id
 
        },
 
        failure: function (o) {
 
            alert("${_('Failed to remove hook')}");
 
        },
 
        }
 
    };
 
    var postData = '_method=delete&hook_id=' + hook_id;
 
    var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
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/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.username), ''),
 
    (_('Owner'), h.person(c.user_group.user.username), '')
 
 ]
 
%>
 
%for dt, dd, tt in elems:
kallithea/templates/admin/user_groups/user_groups.html
Show inline comments
 
@@ -43,16 +43,15 @@
 
    {key: "members"},
 
    {key: "active"},
 
    {key: "owner"},
 
    {key: "action"},
 

	
 
    {key: "action"}
 
  ];
 
  var column_defs = [
 
    {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
 
    {key:"desc",label:"${_('Description')}",sortable:true},
 
    {key:"members",label:"${_('Members')}",sortable:false},
 
    {key:"active",label:"${_('Active')}",sortable:true,},
 
    {key:"active",label:"${_('Active')}",sortable:true},
 
    {key:"owner",label:"${_('Owner')}",sortable:true},
 
    {key:"action",label:"${_('Action')}",sortable:false},
 
    {key:"action",label:"${_('Action')}",sortable:false}
 
  ];
 
  var counter = YUD.get('user_group_count');
 
  var sort_key = "group_name";
kallithea/templates/admin/users/user_edit_api_keys.html
Show inline comments
 
@@ -77,7 +77,7 @@
 
<script>
 
    $(document).ready(function(){
 
        $("#lifetime").select2({
 
            'dropdownAutoWidth': true,
 
            'dropdownAutoWidth': true
 
        });
 
    })
 
</script>
kallithea/templates/admin/users/users.html
Show inline comments
 
@@ -46,18 +46,18 @@
 
    {key: "active"},
 
    {key: "admin"},
 
    {key: "extern_type"},
 
    {key: "action"},
 
    {key: "action"}
 
  ];
 
  var column_defs = [
 
    {key:"gravatar",label:"",sortable:false,},
 
    {key:"gravatar",label:"",sortable:false},
 
    {key:"username",label:"${_('Username')}",sortable:true},
 
    {key:"firstname",label:"${_('Firstname')}",sortable:true,},
 
    {key:"lastname",label:"${_('Lastname')}",sortable:true,},
 
    {key:"firstname",label:"${_('Firstname')}",sortable:true},
 
    {key:"lastname",label:"${_('Lastname')}",sortable:true},
 
    {key:"last_login",label:"${_('Last login')}",sortable:true, sortOptions: { sortFunction: lastLoginSort }},
 
    {key:"active",label:"${_('Active')}",sortable:true,},
 
    {key:"admin",label:"${_('Admin')}",sortable:true,},
 
    {key:"extern_type",label:"${_('Auth type')}",sortable:true,},
 
    {key:"action",label:"${_('Action')}",sortable:false},
 
    {key:"active",label:"${_('Active')}",sortable:true},
 
    {key:"admin",label:"${_('Admin')}",sortable:true},
 
    {key:"extern_type",label:"${_('Auth type')}",sortable:true},
 
    {key:"action",label:"${_('Action')}",sortable:false}
 
  ];
 
  var counter = YUD.get('user_count');
 
  var sort_key = "username";
kallithea/templates/base/base.html
Show inline comments
 
@@ -449,7 +449,7 @@
 
                    }
 
                  })
 
              }
 
            },
 
            }
 
        });
 

	
 
        $("#repo_switcher").on('select2-selecting', function(e){
 
@@ -553,7 +553,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:
 
@@ -581,7 +581,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/root.html
Show inline comments
 
@@ -53,9 +53,7 @@
 
                'MSG_SORTDESC': "${_('Click to sort descending')}",
 
                'MSG_EMPTY': "${_('No records found.')}",
 
                'MSG_ERROR': "${_('Data error.')}",
 
                'MSG_LOADING': "${_('Loading...')}",
 

	
 

	
 
                'MSG_LOADING': "${_('Loading...')}"
 
            };
 
            var _TM = TRANSLATION_MAP;
 

	
kallithea/templates/bookmarks/bookmarks.html
Show inline comments
 
@@ -55,7 +55,7 @@ var myColumnDefs = [
 
    {key:"author",label:"${_('Author')}",sortable:true},
 
    {key:"revision",label:"${_('Revision')}",sortable:true,
 
        sortOptions: { sortFunction: revisionSort }},
 
    {key:"compare",label:"${_('Compare')}",sortable:false,},
 
    {key:"compare",label:"${_('Compare')}",sortable:false}
 
];
 

	
 
var myDataSource = new YAHOO.util.DataSource(YUD.get("bookmarks_data"));
 
@@ -71,7 +71,7 @@ myDataSource.responseSchema = {
 
        {key:"author"},
 
        {key:"last_rev_raw"},
 
        {key:"revision"},
 
        {key:"compare"},
 
        {key:"compare"}
 
    ]
 
};
 

	
 
@@ -82,7 +82,7 @@ var myDataTable = new YAHOO.widget.DataT
 
         MSG_SORTDESC:"${_('Click to sort descending')}",
 
         MSG_EMPTY:"${_('No records found.')}",
 
         MSG_ERROR:"${_('Data error.')}",
 
         MSG_LOADING:"${_('Loading...')}",
 
         MSG_LOADING:"${_('Loading...')}"
 
        }
 
);
 
myDataTable.subscribe('postRenderEvent',function(oArgs) {
kallithea/templates/branches/branches.html
Show inline comments
 
@@ -54,7 +54,7 @@ var myColumnDefs = [
 
    {key:"author",label:"${_('Author')}",sortable:true},
 
    {key:"revision",label:"${_('Revision')}",sortable:true,
 
        sortOptions: { sortFunction: revisionSort }},
 
    {key:"compare",label:"${_('Compare')}",sortable:false,},
 
    {key:"compare",label:"${_('Compare')}",sortable:false}
 
];
 

	
 
var myDataSource = new YAHOO.util.DataSource(YUD.get("branches_data"));
 
@@ -70,7 +70,7 @@ myDataSource.responseSchema = {
 
        {key:"author"},
 
        {key:"last_rev_raw"},
 
        {key:"revision"},
 
        {key:"compare"},
 
        {key:"compare"}
 
    ]
 
};
 

	
 
@@ -81,7 +81,7 @@ var myDataTable = new YAHOO.widget.DataT
 
         MSG_SORTDESC:"${_('Click to sort descending')}",
 
         MSG_EMPTY:"${_('No records found.')}",
 
         MSG_ERROR:"${_('Data error.')}",
 
         MSG_LOADING:"${_('Loading...')}",
 
         MSG_LOADING:"${_('Loading...')}"
 
        }
 
);
 
myDataTable.subscribe('postRenderEvent',function(oArgs) {
kallithea/templates/changelog/changelog.html
Show inline comments
 
@@ -270,7 +270,7 @@ ${self.repo_context_bar('changelog', c.f
 
                // change branch filter
 
                $("#branch_filter").select2({
 
                    dropdownAutoWidth: true,
 
                    minimumInputLength: 1,
 
                    minimumInputLength: 1
 
                    });
 

	
 
                $("#branch_filter").change(function(e){
kallithea/templates/changeset/changeset.html
Show inline comments
 
@@ -241,7 +241,7 @@ ${self.repo_context_bar('changelog', c.c
 
                                  .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
 
                          $('#child_link').html(_html);
 
                      }
 
                    },
 
                    }
 
                  });
 
              e.preventDefault();
 
              }
 
@@ -278,12 +278,11 @@ ${self.repo_context_bar('changelog', c.c
 
                                  .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
 
                          $('#parent_link').html(_html);
 
                      }
 
                    },
 
                    }
 
                  });
 
              e.preventDefault();
 
              }
 
          })
 

	
 
      })
 

	
 
    </script>
kallithea/templates/compare/compare_cs.html
Show inline comments
 
@@ -64,7 +64,7 @@
 
          org_ref_type=c.a_ref_type, org_ref_name=c.a_ref_name,
 
          other_repo=c.cs_repo.repo_name,
 
          other_ref_type=c.cs_ref_type, other_ref_name=c.cs_ref_name,
 
          merge='1'),
 
          merge='1')
 
        )}
 
      </div>
 
      <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">
kallithea/templates/compare/compare_diff.html
Show inline comments
 
@@ -134,7 +134,7 @@ ${self.repo_context_bar('changelog')}
 
                }
 
              })
 
          }
 
        },
 
        }
 
    });
 
    $("#compare_other").select2({
 
        placeholder: "${'%s@%s' % (c.cs_repo.repo_name, c.cs_ref_name)}",
 
@@ -174,7 +174,7 @@ ${self.repo_context_bar('changelog')}
 
                }
 
              })
 
          }
 
        },
 
        }
 
    });
 

	
 
    var values_changed = function() {
kallithea/templates/files/diff_2way.html
Show inline comments
 
@@ -92,7 +92,7 @@ $(document).ready(function () {
 
            else{
 
                $.ajax(orig2_url, {dataType: 'text', success: setValue});
 
            }
 
        },
 
        }
 
    });
 
    $('#ignorews').change(function(e){
 
        var val = e.currentTarget.checked;
kallithea/templates/files/files.html
Show inline comments
 
@@ -182,7 +182,7 @@ var callbacks = function(State){
 
                }
 
              })
 
          }
 
        },
 
        }
 
    });
 
    $('#show_authors').on('click', function(){
 
        $.ajax({
 
@@ -237,7 +237,7 @@ $(document).ready(function(){
 
    // change branch filter
 
    $("#branch_selector").select2({
 
        dropdownAutoWidth: true,
 
        minimumInputLength: 1,
 
        minimumInputLength: 1
 
        });
 

	
 
    $("#branch_selector").change(function(e){
kallithea/templates/forks/fork.html
Show inline comments
 
@@ -108,7 +108,7 @@ ${self.repo_context_bar('createfork')}
 
            'dropdownAutoWidth': true
 
        });
 
        $("#landing_rev").select2({
 
            'minimumResultsForSearch': -1,
 
            'minimumResultsForSearch': -1
 
        });
 
        $('#repo_name').focus();
 
    })
kallithea/templates/index_base.html
Show inline comments
 
@@ -97,7 +97,7 @@
 
               {key:"last_changeset"},
 
               {key:"last_rev_raw"},
 
               {key:"owner"},
 
               {key:"atom"},
 
               {key:"atom"}
 
            ]
 
         };
 
        myDataSource.doBeforeCallback = function(req,raw,res,cb) {
 
@@ -131,7 +131,7 @@
 
            {key:"last_changeset",label:"${_('Tip')}",sortable:true,
 
                sortOptions: { sortFunction: revisionSort }},
 
            {key:"owner",label:"${_('Owner')}",sortable:true},
 
            {key:"atom",label:"",sortable:false},
 
            {key:"atom",label:"",sortable:false}
 
        ];
 

	
 
        var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
 
@@ -142,7 +142,7 @@
 
          MSG_SORTDESC:"${_('Click to sort descending')}",
 
          MSG_EMPTY:"${_('No repositories found.')}",
 
          MSG_ERROR:"${_('Data error.')}",
 
          MSG_LOADING:"${_('Loading...')}",
 
          MSG_LOADING:"${_('Loading...')}"
 
        }
 
        );
 
        myDataTable.subscribe('postRenderEvent',function(oArgs) {
kallithea/templates/journal/journal.html
Show inline comments
 
@@ -138,7 +138,7 @@
 

	
 
    var tabs = {
 
        'watched': show_watched,
 
        'my': show_my,
 
        'my': show_my
 
    }
 
    var url = location.href.split('#');
 
    if (url[1]) {
 
@@ -161,7 +161,7 @@
 
               {key:"name"},
 
               {key:"last_changeset"},
 
               {key:"last_rev_raw"},
 
               {key:"action"},
 
               {key:"action"}
 
            ]
 
         };
 
        myDataSource.doBeforeCallback = function(req,raw,res,cb) {
 
@@ -189,7 +189,7 @@
 
                sortOptions: { sortFunction: nameSort }},
 
            {key:"last_changeset",label:"${_('Tip')}",sortable:true,
 
                sortOptions: { sortFunction: revisionSort }},
 
            {key:"action",label:"${_('Action')}",sortable:false},
 
            {key:"action",label:"${_('Action')}",sortable:false}
 
        ];
 

	
 
        var myDataTable = new YAHOO.widget.DataTable("watched_repos_list_wrap", myColumnDefs, myDataSource,{
 
@@ -200,7 +200,7 @@
 
          MSG_SORTDESC:"${_('Click to sort descending')}",
 
          MSG_EMPTY:"${_('No records found.')}",
 
          MSG_ERROR:"${_('Data error.')}",
 
          MSG_LOADING:"${_('Loading...')}",
 
          MSG_LOADING:"${_('Loading...')}"
 
        }
 
        );
 
        myDataTable.subscribe('postRenderEvent',function(oArgs) {
 
@@ -252,7 +252,7 @@
 
               {key:"name"},
 
               {key:"last_changeset"},
 
               {key:"last_rev_raw"},
 
               {key:"action"},
 
               {key:"action"}
 
            ]
 
         };
 
        myDataSource.doBeforeCallback = function(req,raw,res,cb) {
 
@@ -280,7 +280,7 @@
 
                sortOptions: { sortFunction: nameSort }},
 
            {key:"last_changeset",label:"${_('Tip')}",sortable:true,
 
                sortOptions: { sortFunction: revisionSort }},
 
            {key:"action",label:"${_('Action')}",sortable:false},
 
            {key:"action",label:"${_('Action')}",sortable:false}
 
        ];
 

	
 
        var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
 
@@ -291,7 +291,7 @@
 
          MSG_SORTDESC:"${_('Click to sort descending')}",
 
          MSG_EMPTY:"${_('No records found.')}",
 
          MSG_ERROR:"${_('Data error.')}",
 
          MSG_LOADING:"${_('Loading...')}",
 
          MSG_LOADING:"${_('Loading...')}"
 
        }
 
        );
 
        myDataTable.subscribe('postRenderEvent',function(oArgs) {
kallithea/templates/password_reset.html
Show inline comments
 
@@ -78,7 +78,7 @@
 
            %if c.captcha_active:
 
            Recaptcha.create("${c.captcha_public_key}", "recaptcha",
 
                {
 
                  theme: "white",
 
                  theme: "white"
 
                }
 
            );
 
            %endif
kallithea/templates/pullrequests/pullrequest.html
Show inline comments
 
@@ -177,7 +177,7 @@ ${self.repo_context_bar('showpullrequest
 

	
 
              // re-populate the select2 thingie
 
              $("#other_ref").select2({
 
                  dropdownAutoWidth: true,
 
                  dropdownAutoWidth: true
 
              });
 

	
 
              loadPreview();
 
@@ -210,7 +210,7 @@ ${self.repo_context_bar('showpullrequest
 
          '__org_repo__': org_repo,
 
          '__org_ref_name__': org_ref[2],
 
          '__other_repo__': other_repo,
 
          '__other_ref_name__': other_ref[2],
 
          '__other_ref_name__': other_ref[2]
 
      }; // gather the org/other ref and repo here
 

	
 
      for (k in rev_data){
 
@@ -226,26 +226,26 @@ ${self.repo_context_bar('showpullrequest
 

	
 
  $(document).ready(function(){
 
      $("#org_repo").select2({
 
          dropdownAutoWidth: true,
 
          dropdownAutoWidth: true
 
      });
 
      ## (org_repo can't change)
 

	
 
      $("#org_ref").select2({
 
          dropdownAutoWidth: true,
 
          dropdownAutoWidth: true
 
      });
 
      $("#org_ref").on("change", function(e){
 
          loadPreview();
 
      });
 

	
 
      $("#other_repo").select2({
 
          dropdownAutoWidth: true,
 
          dropdownAutoWidth: true
 
      });
 
      $("#other_repo").on("change", function(e){
 
          otherrepoChanged();
 
      });
 

	
 
      $("#other_ref").select2({
 
          dropdownAutoWidth: true,
 
          dropdownAutoWidth: true
 
      });
 
      $("#other_ref").on("change", function(e){
 
          loadPreview();
kallithea/templates/register.html
Show inline comments
 
@@ -126,7 +126,7 @@
 
            %if c.captcha_active:
 
            Recaptcha.create("${c.captcha_public_key}", "recaptcha",
 
                {
 
                  theme: "white",
 
                  theme: "white"
 
                }
 
            );
 
            %endif
kallithea/templates/search/search.html
Show inline comments
 
@@ -67,8 +67,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
 
@@ -138,8 +138,8 @@ function SummaryPlot(from,to,dataset,ove
 
    var initial_ranges = {
 
        "xaxis":{
 
            "from":from,
 
            "to":to,
 
        },
 
            "to":to
 
        }
 
    };
 
    var dataset = dataset;
 
    var overview_dataset = [overview_dataset];
 
@@ -152,12 +152,12 @@ function SummaryPlot(from,to,dataset,ove
 
        bars: {show:true,align:'center',lineWidth:4},
 
        legend: {show:true, container:"legend_container"},
 
        points: {show:true,radius:0,fill:false},
 
        yaxis: {tickDecimals:0,},
 
        yaxis: {tickDecimals: 0},
 
        xaxis: {
 
            mode: "time",
 
            timeformat: "%d/%m",
 
            min:from,
 
            max:to,
 
            max: to
 
        },
 
        grid: {
 
            hoverable: true,
 
@@ -169,11 +169,11 @@ function SummaryPlot(from,to,dataset,ove
 
    };
 
    var overview_options = {
 
        legend:{show:false},
 
        bars: {show:true,barWidth: 2,},
 
        bars: {show:true, barWidth: 2},
 
        shadowSize: 0,
 
        xaxis: {mode: "time", timeformat: "%d/%m/%y",},
 
        yaxis: {ticks: 3, min: 0,tickDecimals:0,},
 
        grid: {color: "#999",},
 
        xaxis: {mode: "time", timeformat: "%d/%m/%y"},
 
        yaxis: {ticks: 3, min: 0, tickDecimals:0},
 
        grid: {color: "#999"},
 
        selection: {mode: "x"}
 
    };
 

	
 
@@ -186,10 +186,10 @@ function SummaryPlot(from,to,dataset,ove
 
             "commits":0,
 
                 "added":0,
 
                 "changed":0,
 
                 "removed":0,
 
                 "removed":0
 
            }],
 
            "schema":["commits"],
 
            "color":'#ffffff',
 
            "color":'#ffffff'
 
        }
 
    }
 

	
 
@@ -306,8 +306,8 @@ function SummaryPlot(from,to,dataset,ove
 
                min: cur_ranges.xaxis.from,
 
                max: cur_ranges.xaxis.to,
 
                mode:"time",
 
                timeformat: "%d/%m",
 
            },
 
                timeformat: "%d/%m"
 
            }
 
        });
 
        if (!new_data){
 
            new_data = [[0,1]];
 
@@ -340,8 +340,8 @@ function SummaryPlot(from,to,dataset,ove
 
                min: ranges.xaxis.from,
 
                max: ranges.xaxis.to,
 
                mode:"time",
 
                timeformat: "%d/%m",
 
            },
 
                timeformat: "%d/%m"
 
            }
 
        });
 
        // do the zooming
 
        plot = YAHOO.widget.Flot(plotContainer, data, new_options);
kallithea/templates/summary/summary.html
Show inline comments
 
@@ -288,7 +288,7 @@ $(document).ready(function(){
 
                }
 
              })
 
          }
 
        },
 
        }
 
    });
 
    // on change of download options
 
    $('#download_options').change(function(e){
kallithea/templates/switch_to_list.html
Show inline comments
 
## -*- coding: utf-8 -*-
 
<li>
 
    <a href="${h.url('branches_home',repo_name=c.repo_name)}" class="childs"><i class="icon-code-fork"></i> ${'%s (%s)' % (_('Branches'),len(c.db_repo_scm_instance.branches.values()),)}</a>
 
    <a href="${h.url('branches_home',repo_name=c.repo_name)}" class="childs"><i class="icon-code-fork"></i> ${'%s (%s)' % (_('Branches'),len(c.db_repo_scm_instance.branches.values()))}</a>
 
    <ul>
 
    %if c.db_repo_scm_instance.branches.values():
 
        %for cnt,branch in enumerate(c.db_repo_scm_instance.branches.items()):
 
@@ -22,7 +22,7 @@
 
</li>
 
%endif
 
<li>
 
    <a href="${h.url('tags_home',repo_name=c.repo_name)}" class="childs"><i class="icon-tag"></i> ${'%s (%s)' % (_('Tags'),len(c.db_repo_scm_instance.tags.values()),)}</a>
 
    <a href="${h.url('tags_home',repo_name=c.repo_name)}" class="childs"><i class="icon-tag"></i> ${'%s (%s)' % (_('Tags'),len(c.db_repo_scm_instance.tags.values()))}</a>
 
    <ul>
 
    %if c.db_repo_scm_instance.tags.values():
 
        %for cnt,tag in enumerate(c.db_repo_scm_instance.tags.items()):
 
@@ -35,7 +35,7 @@
 
</li>
 
%if c.db_repo_scm_instance.alias == 'hg':
 
<li>
 
    <a href="${h.url('bookmarks_home',repo_name=c.repo_name)}" class="childs"><i class="icon-bookmark"></i> ${'%s (%s)' % (_('Bookmarks'),len(c.db_repo_scm_instance.bookmarks.values()),)}</a>
 
    <a href="${h.url('bookmarks_home',repo_name=c.repo_name)}" class="childs"><i class="icon-bookmark"></i> ${'%s (%s)' % (_('Bookmarks'),len(c.db_repo_scm_instance.bookmarks.values()))}</a>
 
    <ul>
 
    %if c.db_repo_scm_instance.bookmarks.values():
 
        %for cnt,book in enumerate(c.db_repo_scm_instance.bookmarks.items()):
kallithea/templates/tags/tags.html
Show inline comments
 
@@ -55,7 +55,7 @@ var myColumnDefs = [
 
    {key:"author",label:"${_('Author')}",sortable:true},
 
    {key:"revision",label:"${_('Revision')}",sortable:true,
 
        sortOptions: { sortFunction: revisionSort }},
 
    {key:"compare",label:"${_('Compare')}",sortable:false,},
 
    {key:"compare",label:"${_('Compare')}",sortable:false}
 
];
 

	
 
var myDataSource = new YAHOO.util.DataSource(YUD.get("tags_data"));
 
@@ -71,7 +71,7 @@ myDataSource.responseSchema = {
 
        {key:"author"},
 
        {key:"last_rev_raw"},
 
        {key:"revision"},
 
        {key:"compare"},
 
        {key:"compare"}
 
    ]
 
};
 

	
 
@@ -82,7 +82,7 @@ var myDataTable = new YAHOO.widget.DataT
 
         MSG_SORTDESC:"${_('Click to sort descending')}",
 
         MSG_EMPTY:"${_('No records found.')}",
 
         MSG_ERROR:"${_('Data error.')}",
 
         MSG_LOADING:"${_('Loading...')}",
 
         MSG_LOADING:"${_('Loading...')}"
 
        }
 
);
 
myDataTable.subscribe('postRenderEvent',function(oArgs) {
0 comments (0 inline, 0 general)