##// END OF EJS Templates
javascript: remove nice trailing comma to please IE8 (Issue #39)
Mads Kiilerich -
r4516:b3f12c35 default
parent child Browse files
Show More
@@ -393,7 +393,7 b' var ajaxGET = function(url,success) {'
393 393 if (o.status != 0) {
394 394 alert("Ajax GET error: " + o.statusText);
395 395 };
396 },
396 }
397 397 };
398 398
399 399 var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
@@ -409,7 +409,7 b' var ajaxPOST = function(url,postData,suc'
409 409 success: success,
410 410 failure: function (o) {
411 411 alert("Ajax POST error: " + o.statusText);
412 },
412 }
413 413 };
414 414 var postData = _toQueryString(postData);
415 415 var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
@@ -989,7 +989,7 b' var initCodeMirror = function(textarea_i'
989 989 mode: "null",
990 990 lineNumbers: true,
991 991 indentUnit: 4,
992 autofocus: true,
992 autofocus: true
993 993 });
994 994 $('#reset').click(function(e){
995 995 window.location=resetUrl;
@@ -1082,7 +1082,7 b' var deleteNotification = function(url, n'
1082 1082 },
1083 1083 failure:function(o){
1084 1084 alert("deleteNotification failure");
1085 },
1085 }
1086 1086 };
1087 1087 var postData = '_method=delete';
1088 1088 var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
@@ -1100,7 +1100,7 b' var readNotification = function(url, not'
1100 1100 },
1101 1101 failure:function(o){
1102 1102 alert("readNotification failure");
1103 },
1103 }
1104 1104 };
1105 1105 var postData = '_method=put';
1106 1106 var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
@@ -1282,7 +1282,7 b' var _MembersAutoComplete = function (div'
1282 1282 memberDS: memberDS,
1283 1283 ownerDS: ownerDS,
1284 1284 membersAC: membersAC,
1285 ownerAC: ownerAC,
1285 ownerAC: ownerAC
1286 1286 };
1287 1287 }
1288 1288
@@ -1741,7 +1741,7 b' function ajaxActionRevokePermission(url,'
1741 1741 },
1742 1742 failure: function (o) {
1743 1743 alert(_TM['Failed to revoke permission'] + ": " + o.status);
1744 },
1744 }
1745 1745 };
1746 1746 query_params = {
1747 1747 '_method': 'delete'
@@ -2092,7 +2092,7 b' var YUI_datatable = function(data, field'
2092 2092 myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
2093 2093 myDataSource.responseSchema = {
2094 2094 resultsList: "records",
2095 fields: fields,
2095 fields: fields
2096 2096 };
2097 2097 myDataSource.doBeforeCallback = function(req, raw, res, cb) {
2098 2098 // This is the filter function
@@ -2121,7 +2121,7 b' var YUI_datatable = function(data, field'
2121 2121 MSG_SORTDESC: _TM['MSG_SORTDESC'],
2122 2122 MSG_EMPTY: _TM['MSG_EMPTY'],
2123 2123 MSG_ERROR: _TM['MSG_ERROR'],
2124 MSG_LOADING: _TM['MSG_LOADING'],
2124 MSG_LOADING: _TM['MSG_LOADING']
2125 2125 });
2126 2126 myDataTable.subscribe('postRenderEvent',function(oArgs) {
2127 2127 tooltip_activate();
@@ -77,7 +77,7 b''
77 77 <script>
78 78 $(document).ready(function(){
79 79 $("#lifetime").select2({
80 'dropdownAutoWidth': true,
80 'dropdownAutoWidth': true
81 81 });
82 82 })
83 83 </script>
@@ -18,7 +18,7 b' function table_renderer(data){'
18 18 {key:"name"},
19 19 {key:"last_changeset"},
20 20 {key:"last_rev_raw"},
21 {key:"action"},
21 {key:"action"}
22 22 ]
23 23 };
24 24 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -47,7 +47,7 b' function table_renderer(data){'
47 47 sortOptions: { sortFunction: nameSort }},
48 48 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
49 49 sortOptions: { sortFunction: revisionSort }},
50 {key:"action",label:"${_('Action')}",sortable:false},
50 {key:"action",label:"${_('Action')}",sortable:false}
51 51 ];
52 52
53 53 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -58,7 +58,7 b' function table_renderer(data){'
58 58 MSG_SORTDESC:"${_('Click to sort descending')}",
59 59 MSG_EMPTY:"${_('No records found.')}",
60 60 MSG_ERROR:"${_('Data error.')}",
61 MSG_LOADING:"${_('Loading...')}",
61 MSG_LOADING:"${_('Loading...')}"
62 62 }
63 63 );
64 64 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -18,7 +18,7 b' function table_renderer(data){'
18 18 {key:"name"},
19 19 {key:"last_changeset"},
20 20 {key:"last_rev_raw"},
21 {key:"action"},
21 {key:"action"}
22 22 ]
23 23 };
24 24 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -47,7 +47,7 b' function table_renderer(data){'
47 47 sortOptions: { sortFunction: nameSort }},
48 48 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
49 49 sortOptions: { sortFunction: revisionSort }},
50 {key:"action",label:"${_('Action')}",sortable:false},
50 {key:"action",label:"${_('Action')}",sortable:false}
51 51 ];
52 52
53 53 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -58,7 +58,7 b' function table_renderer(data){'
58 58 MSG_SORTDESC:"${_('Click to sort descending')}",
59 59 MSG_EMPTY:"${_('No records found.')}",
60 60 MSG_ERROR:"${_('Data error.')}",
61 MSG_LOADING:"${_('Loading...')}",
61 MSG_LOADING:"${_('Loading...')}"
62 62 }
63 63 );
64 64 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -7,7 +7,7 b''
7 7 (_('Total repositories'), c.repo_group.repositories_recursive_count, ''),
8 8 (_('Children groups'), c.repo_group.children.count(), ''),
9 9 (_('Created on'), h.fmt_date(c.repo_group.created_on), ''),
10 (_('Owner'), h.person(c.repo_group.user.username), ''),
10 (_('Owner'), h.person(c.repo_group.user.username), '')
11 11 ]
12 12 %>
13 13 %for dt, dd, tt in elems:
@@ -43,15 +43,14 b''
43 43 {key: "desc"},
44 44 {key: "repos"},
45 45 {key: "owner"},
46 {key: "action"},
47
46 {key: "action"}
48 47 ];
49 48 var column_defs = [
50 49 {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
51 50 {key:"desc",label:"${_('Description')}",sortable:true},
52 51 {key:"repos",label:"${_('Number of toplevel repositories')}",sortable:true},
53 52 {key:"owner",label:"${_('Owner')}",sortable:true},
54 {key:"action",label:"${_('Action')}",sortable:false},
53 {key:"action",label:"${_('Action')}",sortable:false}
55 54 ];
56 55 var counter = YUD.get('repo_group_count');
57 56 var sort_key = "group_name";
@@ -117,10 +117,10 b''
117 117 })
118 118
119 119 $("#repo_type").select2({
120 'minimumResultsForSearch': -1,
120 'minimumResultsForSearch': -1
121 121 });
122 122 $("#repo_landing_rev").select2({
123 'minimumResultsForSearch': -1,
123 'minimumResultsForSearch': -1
124 124 });
125 125 $('#repo_name').focus();
126 126 })
@@ -3,7 +3,7 b''
3 3 <div class="form">
4 4 <div class="fields">
5 5 ${h.select('id_fork_of','',c.repos_list,class_="medium")}
6 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
6 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")}
7 7 </div>
8 8 <div class="field" style="border:none;color:#888">
9 9 <ul>
@@ -16,7 +16,7 b''
16 16 <script>
17 17 $(document).ready(function(){
18 18 $("#id_fork_of").select2({
19 'dropdownAutoWidth': true,
19 'dropdownAutoWidth': true
20 20 });
21 21 })
22 22 </script>
@@ -2,7 +2,7 b''
2 2 <div class="form">
3 3 <div class="fields">
4 4 ${h.select('id_fork_of','',c.repos_list,class_="medium")}
5 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
5 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")}
6 6 </div>
7 7 <div class="field" style="border:none;color:#888">
8 8 <ul>
@@ -15,7 +15,7 b''
15 15 <script>
16 16 $(document).ready(function(){
17 17 $("#id_fork_of").select2({
18 'dropdownAutoWidth': true,
18 'dropdownAutoWidth': true
19 19 });
20 20 })
21 21 </script>
@@ -43,7 +43,7 b''
43 43 {key:"last_rev_raw"},
44 44 {key:"owner"},
45 45 {key:"state"},
46 {key:"action"},
46 {key:"action"}
47 47 ];
48 48 var column_defs = [
49 49 {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
@@ -52,7 +52,7 b''
52 52 {key:"last_changeset",label:"${_('Tip')}",sortable:true, sortOptions: { sortFunction: revisionSort }},
53 53 {key:"owner",label:"${_('Owner')}",sortable:true},
54 54 {key:"state",label:"${_('State')}",sortable:true},
55 {key:"action",label:"${_('Action')}",sortable:false},
55 {key:"action",label:"${_('Action')}",sortable:false}
56 56 ];
57 57 var counter = YUD.get('repo_count');
58 58 var sort_key = "name";
@@ -13,7 +13,7 b''
13 13
14 14 (_('SMTP use TLS'), c.ini.get('smtp_use_tls'), ''),
15 15 (_('SMTP use SSL'), c.ini.get('smtp_use_ssl'), ''),
16 (_('SMTP auth'), c.ini.get('smtp_auth'), ''),
16 (_('SMTP auth'), c.ini.get('smtp_auth'), '')
17 17 ]
18 18 %>
19 19 %for dt, dd, tt in elems:
@@ -67,7 +67,7 b' function ajaxActionHook(hook_id,field_id'
67 67 },
68 68 failure: function (o) {
69 69 alert("${_('Failed to remove hook')}");
70 },
70 }
71 71 };
72 72 var postData = '_method=delete&hook_id=' + hook_id;
73 73 var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
@@ -6,7 +6,7 b''
6 6 (_('Platform'), c.platform, ''),
7 7 (_('GIT version'), c.git_version, ''),
8 8 (_('GIT path'), c.ini.get('git_path'), ''),
9 (_('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'))), ''),
9 (_('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'))), '')
10 10 ]
11 11 %>
12 12
@@ -5,8 +5,8 b''
5 5 elems = [
6 6 (_('Members'), len(c.group_members_obj), ''),
7 7 (_('Created on'), h.fmt_date(c.user_group.created_on), ''),
8 (_('Owner'), h.person(c.user_group.user.username), ''),
9 ]
8 (_('Owner'), h.person(c.user_group.user.username), '')
9 ]
10 10 %>
11 11 %for dt, dd, tt in elems:
12 12 <dt style="width:150px; text-align: left">${dt}:</dt>
@@ -43,16 +43,15 b''
43 43 {key: "members"},
44 44 {key: "active"},
45 45 {key: "owner"},
46 {key: "action"},
47
46 {key: "action"}
48 47 ];
49 48 var column_defs = [
50 49 {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
51 50 {key:"desc",label:"${_('Description')}",sortable:true},
52 51 {key:"members",label:"${_('Members')}",sortable:false},
53 {key:"active",label:"${_('Active')}",sortable:true,},
52 {key:"active",label:"${_('Active')}",sortable:true},
54 53 {key:"owner",label:"${_('Owner')}",sortable:true},
55 {key:"action",label:"${_('Action')}",sortable:false},
54 {key:"action",label:"${_('Action')}",sortable:false}
56 55 ];
57 56 var counter = YUD.get('user_group_count');
58 57 var sort_key = "group_name";
@@ -77,7 +77,7 b''
77 77 <script>
78 78 $(document).ready(function(){
79 79 $("#lifetime").select2({
80 'dropdownAutoWidth': true,
80 'dropdownAutoWidth': true
81 81 });
82 82 })
83 83 </script>
@@ -46,18 +46,18 b''
46 46 {key: "active"},
47 47 {key: "admin"},
48 48 {key: "extern_type"},
49 {key: "action"},
49 {key: "action"}
50 50 ];
51 51 var column_defs = [
52 {key:"gravatar",label:"",sortable:false,},
52 {key:"gravatar",label:"",sortable:false},
53 53 {key:"username",label:"${_('Username')}",sortable:true},
54 {key:"firstname",label:"${_('Firstname')}",sortable:true,},
55 {key:"lastname",label:"${_('Lastname')}",sortable:true,},
54 {key:"firstname",label:"${_('Firstname')}",sortable:true},
55 {key:"lastname",label:"${_('Lastname')}",sortable:true},
56 56 {key:"last_login",label:"${_('Last login')}",sortable:true, sortOptions: { sortFunction: lastLoginSort }},
57 {key:"active",label:"${_('Active')}",sortable:true,},
58 {key:"admin",label:"${_('Admin')}",sortable:true,},
59 {key:"extern_type",label:"${_('Auth type')}",sortable:true,},
60 {key:"action",label:"${_('Action')}",sortable:false},
57 {key:"active",label:"${_('Active')}",sortable:true},
58 {key:"admin",label:"${_('Admin')}",sortable:true},
59 {key:"extern_type",label:"${_('Auth type')}",sortable:true},
60 {key:"action",label:"${_('Action')}",sortable:false}
61 61 ];
62 62 var counter = YUD.get('user_count');
63 63 var sort_key = "username";
@@ -449,7 +449,7 b''
449 449 }
450 450 })
451 451 }
452 },
452 }
453 453 });
454 454
455 455 $("#repo_switcher").on('select2-selecting', function(e){
@@ -553,7 +553,7 b''
553 553 ('g g', 'Goto my private gists page'),
554 554 ('g G', 'Goto my public gists page'),
555 555 ('n r', 'New repository page'),
556 ('n g', 'New gist page'),
556 ('n g', 'New gist page')
557 557 ]
558 558 %>
559 559 %for key, desc in elems:
@@ -581,7 +581,7 b''
581 581 ('g f', 'Goto files page'),
582 582 ('g F', 'Goto files page with file search activated'),
583 583 ('g o', 'Goto repository settings'),
584 ('g O', 'Goto repository permissions settings'),
584 ('g O', 'Goto repository permissions settings')
585 585 ]
586 586 %>
587 587 %for key, desc in elems:
@@ -53,9 +53,7 b''
53 53 'MSG_SORTDESC': "${_('Click to sort descending')}",
54 54 'MSG_EMPTY': "${_('No records found.')}",
55 55 'MSG_ERROR': "${_('Data error.')}",
56 'MSG_LOADING': "${_('Loading...')}",
57
58
56 'MSG_LOADING': "${_('Loading...')}"
59 57 };
60 58 var _TM = TRANSLATION_MAP;
61 59
@@ -55,7 +55,7 b' var myColumnDefs = ['
55 55 {key:"author",label:"${_('Author')}",sortable:true},
56 56 {key:"revision",label:"${_('Revision')}",sortable:true,
57 57 sortOptions: { sortFunction: revisionSort }},
58 {key:"compare",label:"${_('Compare')}",sortable:false,},
58 {key:"compare",label:"${_('Compare')}",sortable:false}
59 59 ];
60 60
61 61 var myDataSource = new YAHOO.util.DataSource(YUD.get("bookmarks_data"));
@@ -71,19 +71,19 b' myDataSource.responseSchema = {'
71 71 {key:"author"},
72 72 {key:"last_rev_raw"},
73 73 {key:"revision"},
74 {key:"compare"},
74 {key:"compare"}
75 75 ]
76 76 };
77 77
78 78 var myDataTable = new YAHOO.widget.DataTable("table_wrap", myColumnDefs, myDataSource,
79 {
79 {
80 80 sortedBy:{key:"name",dir:"asc"},
81 81 MSG_SORTASC:"${_('Click to sort ascending')}",
82 82 MSG_SORTDESC:"${_('Click to sort descending')}",
83 83 MSG_EMPTY:"${_('No records found.')}",
84 84 MSG_ERROR:"${_('Data error.')}",
85 MSG_LOADING:"${_('Loading...')}",
86 }
85 MSG_LOADING:"${_('Loading...')}"
86 }
87 87 );
88 88 myDataTable.subscribe('postRenderEvent',function(oArgs) {
89 89 tooltip_activate();
@@ -54,7 +54,7 b' var myColumnDefs = ['
54 54 {key:"author",label:"${_('Author')}",sortable:true},
55 55 {key:"revision",label:"${_('Revision')}",sortable:true,
56 56 sortOptions: { sortFunction: revisionSort }},
57 {key:"compare",label:"${_('Compare')}",sortable:false,},
57 {key:"compare",label:"${_('Compare')}",sortable:false}
58 58 ];
59 59
60 60 var myDataSource = new YAHOO.util.DataSource(YUD.get("branches_data"));
@@ -70,19 +70,19 b' myDataSource.responseSchema = {'
70 70 {key:"author"},
71 71 {key:"last_rev_raw"},
72 72 {key:"revision"},
73 {key:"compare"},
73 {key:"compare"}
74 74 ]
75 75 };
76 76
77 77 var myDataTable = new YAHOO.widget.DataTable("table_wrap", myColumnDefs, myDataSource,
78 {
78 {
79 79 sortedBy:{key:"name",dir:"asc"},
80 80 MSG_SORTASC:"${_('Click to sort ascending')}",
81 81 MSG_SORTDESC:"${_('Click to sort descending')}",
82 82 MSG_EMPTY:"${_('No records found.')}",
83 83 MSG_ERROR:"${_('Data error.')}",
84 MSG_LOADING:"${_('Loading...')}",
85 }
84 MSG_LOADING:"${_('Loading...')}"
85 }
86 86 );
87 87 myDataTable.subscribe('postRenderEvent',function(oArgs) {
88 88 tooltip_activate();
@@ -270,7 +270,7 b''
270 270 // change branch filter
271 271 $("#branch_filter").select2({
272 272 dropdownAutoWidth: true,
273 minimumInputLength: 1,
273 minimumInputLength: 1
274 274 });
275 275
276 276 $("#branch_filter").change(function(e){
@@ -241,7 +241,7 b''
241 241 .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
242 242 $('#child_link').html(_html);
243 243 }
244 },
244 }
245 245 });
246 246 e.preventDefault();
247 247 }
@@ -278,12 +278,11 b''
278 278 .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
279 279 $('#parent_link').html(_html);
280 280 }
281 },
281 }
282 282 });
283 283 e.preventDefault();
284 284 }
285 285 })
286
287 286 })
288 287
289 288 </script>
@@ -64,7 +64,7 b''
64 64 org_ref_type=c.a_ref_type, org_ref_name=c.a_ref_name,
65 65 other_repo=c.cs_repo.repo_name,
66 66 other_ref_type=c.cs_ref_type, other_ref_name=c.cs_ref_name,
67 merge='1'),
67 merge='1')
68 68 )}
69 69 </div>
70 70 <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">
@@ -134,7 +134,7 b''
134 134 }
135 135 })
136 136 }
137 },
137 }
138 138 });
139 139 $("#compare_other").select2({
140 140 placeholder: "${'%s@%s' % (c.cs_repo.repo_name, c.cs_ref_name)}",
@@ -174,7 +174,7 b''
174 174 }
175 175 })
176 176 }
177 },
177 }
178 178 });
179 179
180 180 var values_changed = function() {
@@ -92,7 +92,7 b" var orig2_url = '${h.url('files_raw_home"
92 92 else{
93 93 $.ajax(orig2_url, {dataType: 'text', success: setValue});
94 94 }
95 },
95 }
96 96 });
97 97 $('#ignorews').change(function(e){
98 98 var val = e.currentTarget.checked;
@@ -182,7 +182,7 b' var callbacks = function(State){'
182 182 }
183 183 })
184 184 }
185 },
185 }
186 186 });
187 187 $('#show_authors').on('click', function(){
188 188 $.ajax({
@@ -237,7 +237,7 b' var callbacks = function(State){'
237 237 // change branch filter
238 238 $("#branch_selector").select2({
239 239 dropdownAutoWidth: true,
240 minimumInputLength: 1,
240 minimumInputLength: 1
241 241 });
242 242
243 243 $("#branch_selector").change(function(e){
@@ -108,7 +108,7 b''
108 108 'dropdownAutoWidth': true
109 109 });
110 110 $("#landing_rev").select2({
111 'minimumResultsForSearch': -1,
111 'minimumResultsForSearch': -1
112 112 });
113 113 $('#repo_name').focus();
114 114 })
@@ -97,7 +97,7 b''
97 97 {key:"last_changeset"},
98 98 {key:"last_rev_raw"},
99 99 {key:"owner"},
100 {key:"atom"},
100 {key:"atom"}
101 101 ]
102 102 };
103 103 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -131,7 +131,7 b''
131 131 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
132 132 sortOptions: { sortFunction: revisionSort }},
133 133 {key:"owner",label:"${_('Owner')}",sortable:true},
134 {key:"atom",label:"",sortable:false},
134 {key:"atom",label:"",sortable:false}
135 135 ];
136 136
137 137 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -142,7 +142,7 b''
142 142 MSG_SORTDESC:"${_('Click to sort descending')}",
143 143 MSG_EMPTY:"${_('No repositories found.')}",
144 144 MSG_ERROR:"${_('Data error.')}",
145 MSG_LOADING:"${_('Loading...')}",
145 MSG_LOADING:"${_('Loading...')}"
146 146 }
147 147 );
148 148 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -138,7 +138,7 b''
138 138
139 139 var tabs = {
140 140 'watched': show_watched,
141 'my': show_my,
141 'my': show_my
142 142 }
143 143 var url = location.href.split('#');
144 144 if (url[1]) {
@@ -161,7 +161,7 b''
161 161 {key:"name"},
162 162 {key:"last_changeset"},
163 163 {key:"last_rev_raw"},
164 {key:"action"},
164 {key:"action"}
165 165 ]
166 166 };
167 167 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -189,7 +189,7 b''
189 189 sortOptions: { sortFunction: nameSort }},
190 190 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
191 191 sortOptions: { sortFunction: revisionSort }},
192 {key:"action",label:"${_('Action')}",sortable:false},
192 {key:"action",label:"${_('Action')}",sortable:false}
193 193 ];
194 194
195 195 var myDataTable = new YAHOO.widget.DataTable("watched_repos_list_wrap", myColumnDefs, myDataSource,{
@@ -200,7 +200,7 b''
200 200 MSG_SORTDESC:"${_('Click to sort descending')}",
201 201 MSG_EMPTY:"${_('No records found.')}",
202 202 MSG_ERROR:"${_('Data error.')}",
203 MSG_LOADING:"${_('Loading...')}",
203 MSG_LOADING:"${_('Loading...')}"
204 204 }
205 205 );
206 206 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -252,7 +252,7 b''
252 252 {key:"name"},
253 253 {key:"last_changeset"},
254 254 {key:"last_rev_raw"},
255 {key:"action"},
255 {key:"action"}
256 256 ]
257 257 };
258 258 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -280,7 +280,7 b''
280 280 sortOptions: { sortFunction: nameSort }},
281 281 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
282 282 sortOptions: { sortFunction: revisionSort }},
283 {key:"action",label:"${_('Action')}",sortable:false},
283 {key:"action",label:"${_('Action')}",sortable:false}
284 284 ];
285 285
286 286 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -291,7 +291,7 b''
291 291 MSG_SORTDESC:"${_('Click to sort descending')}",
292 292 MSG_EMPTY:"${_('No records found.')}",
293 293 MSG_ERROR:"${_('Data error.')}",
294 MSG_LOADING:"${_('Loading...')}",
294 MSG_LOADING:"${_('Loading...')}"
295 295 }
296 296 );
297 297 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -78,7 +78,7 b''
78 78 %if c.captcha_active:
79 79 Recaptcha.create("${c.captcha_public_key}", "recaptcha",
80 80 {
81 theme: "white",
81 theme: "white"
82 82 }
83 83 );
84 84 %endif
@@ -177,7 +177,7 b''
177 177
178 178 // re-populate the select2 thingie
179 179 $("#other_ref").select2({
180 dropdownAutoWidth: true,
180 dropdownAutoWidth: true
181 181 });
182 182
183 183 loadPreview();
@@ -210,7 +210,7 b''
210 210 '__org_repo__': org_repo,
211 211 '__org_ref_name__': org_ref[2],
212 212 '__other_repo__': other_repo,
213 '__other_ref_name__': other_ref[2],
213 '__other_ref_name__': other_ref[2]
214 214 }; // gather the org/other ref and repo here
215 215
216 216 for (k in rev_data){
@@ -226,26 +226,26 b''
226 226
227 227 $(document).ready(function(){
228 228 $("#org_repo").select2({
229 dropdownAutoWidth: true,
229 dropdownAutoWidth: true
230 230 });
231 231 ## (org_repo can't change)
232 232
233 233 $("#org_ref").select2({
234 dropdownAutoWidth: true,
234 dropdownAutoWidth: true
235 235 });
236 236 $("#org_ref").on("change", function(e){
237 237 loadPreview();
238 238 });
239 239
240 240 $("#other_repo").select2({
241 dropdownAutoWidth: true,
241 dropdownAutoWidth: true
242 242 });
243 243 $("#other_repo").on("change", function(e){
244 244 otherrepoChanged();
245 245 });
246 246
247 247 $("#other_ref").select2({
248 dropdownAutoWidth: true,
248 dropdownAutoWidth: true
249 249 });
250 250 $("#other_ref").on("change", function(e){
251 251 loadPreview();
@@ -126,7 +126,7 b''
126 126 %if c.captcha_active:
127 127 Recaptcha.create("${c.captcha_public_key}", "recaptcha",
128 128 {
129 theme: "white",
129 theme: "white"
130 130 }
131 131 );
132 132 %endif
@@ -67,8 +67,8 b''
67 67 <div class="select">
68 68 ${h.select('type',c.cur_type,[('content',_('File contents')),
69 69 ('commit',_('Commit messages')),
70 ('path',_('File names')),
71 ##('repository',_('Repository names')),
70 ('path',_('File names'))
71 ##('repository',_('Repository names'))
72 72 ])}
73 73 </div>
74 74 </div>
@@ -138,8 +138,8 b' function SummaryPlot(from,to,dataset,ove'
138 138 var initial_ranges = {
139 139 "xaxis":{
140 140 "from":from,
141 "to":to,
142 },
141 "to":to
142 }
143 143 };
144 144 var dataset = dataset;
145 145 var overview_dataset = [overview_dataset];
@@ -149,31 +149,31 b' function SummaryPlot(from,to,dataset,ove'
149 149 var overviewContainer = YUD.get('overview');
150 150
151 151 var plot_options = {
152 bars: {show:true,align:'center',lineWidth:4},
153 legend: {show:true, container:"legend_container"},
154 points: {show:true,radius:0,fill:false},
155 yaxis: {tickDecimals:0,},
152 bars: {show:true, align: 'center', lineWidth: 4},
153 legend: {show:true, container: "legend_container"},
154 points: {show:true, radius: 0, fill: false},
155 yaxis: {tickDecimals: 0},
156 156 xaxis: {
157 157 mode: "time",
158 158 timeformat: "%d/%m",
159 min:from,
160 max:to,
159 min: from,
160 max: to
161 161 },
162 162 grid: {
163 163 hoverable: true,
164 164 clickable: true,
165 autoHighlight:true,
165 autoHighlight: true,
166 166 color: "#999"
167 167 },
168 168 //selection: {mode: "x"}
169 169 };
170 170 var overview_options = {
171 171 legend:{show:false},
172 bars: {show:true,barWidth: 2,},
172 bars: {show:true, barWidth: 2},
173 173 shadowSize: 0,
174 xaxis: {mode: "time", timeformat: "%d/%m/%y",},
175 yaxis: {ticks: 3, min: 0,tickDecimals:0,},
176 grid: {color: "#999",},
174 xaxis: {mode: "time", timeformat: "%d/%m/%y"},
175 yaxis: {ticks: 3, min: 0, tickDecimals:0},
176 grid: {color: "#999"},
177 177 selection: {mode: "x"}
178 178 };
179 179
@@ -186,10 +186,10 b' function SummaryPlot(from,to,dataset,ove'
186 186 "commits":0,
187 187 "added":0,
188 188 "changed":0,
189 "removed":0,
189 "removed":0
190 190 }],
191 191 "schema":["commits"],
192 "color":'#ffffff',
192 "color":'#ffffff'
193 193 }
194 194 }
195 195
@@ -305,9 +305,9 b' function SummaryPlot(from,to,dataset,ove'
305 305 xaxis: {
306 306 min: cur_ranges.xaxis.from,
307 307 max: cur_ranges.xaxis.to,
308 mode:"time",
309 timeformat: "%d/%m",
310 },
308 mode: "time",
309 timeformat: "%d/%m"
310 }
311 311 });
312 312 if (!new_data){
313 313 new_data = [[0,1]];
@@ -340,8 +340,8 b' function SummaryPlot(from,to,dataset,ove'
340 340 min: ranges.xaxis.from,
341 341 max: ranges.xaxis.to,
342 342 mode:"time",
343 timeformat: "%d/%m",
344 },
343 timeformat: "%d/%m"
344 }
345 345 });
346 346 // do the zooming
347 347 plot = YAHOO.widget.Flot(plotContainer, data, new_options);
@@ -288,7 +288,7 b" summary = lambda n:{False:'summary-short"
288 288 }
289 289 })
290 290 }
291 },
291 }
292 292 });
293 293 // on change of download options
294 294 $('#download_options').change(function(e){
@@ -1,6 +1,6 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <li>
3 <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>
3 <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>
4 4 <ul>
5 5 %if c.db_repo_scm_instance.branches.values():
6 6 %for cnt,branch in enumerate(c.db_repo_scm_instance.branches.items()):
@@ -22,7 +22,7 b''
22 22 </li>
23 23 %endif
24 24 <li>
25 <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>
25 <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>
26 26 <ul>
27 27 %if c.db_repo_scm_instance.tags.values():
28 28 %for cnt,tag in enumerate(c.db_repo_scm_instance.tags.items()):
@@ -35,7 +35,7 b''
35 35 </li>
36 36 %if c.db_repo_scm_instance.alias == 'hg':
37 37 <li>
38 <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>
38 <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>
39 39 <ul>
40 40 %if c.db_repo_scm_instance.bookmarks.values():
41 41 %for cnt,book in enumerate(c.db_repo_scm_instance.bookmarks.items()):
@@ -55,7 +55,7 b' var myColumnDefs = ['
55 55 {key:"author",label:"${_('Author')}",sortable:true},
56 56 {key:"revision",label:"${_('Revision')}",sortable:true,
57 57 sortOptions: { sortFunction: revisionSort }},
58 {key:"compare",label:"${_('Compare')}",sortable:false,},
58 {key:"compare",label:"${_('Compare')}",sortable:false}
59 59 ];
60 60
61 61 var myDataSource = new YAHOO.util.DataSource(YUD.get("tags_data"));
@@ -71,7 +71,7 b' myDataSource.responseSchema = {'
71 71 {key:"author"},
72 72 {key:"last_rev_raw"},
73 73 {key:"revision"},
74 {key:"compare"},
74 {key:"compare"}
75 75 ]
76 76 };
77 77
@@ -82,7 +82,7 b' var myDataTable = new YAHOO.widget.DataT'
82 82 MSG_SORTDESC:"${_('Click to sort descending')}",
83 83 MSG_EMPTY:"${_('No records found.')}",
84 84 MSG_ERROR:"${_('Data error.')}",
85 MSG_LOADING:"${_('Loading...')}",
85 MSG_LOADING:"${_('Loading...')}"
86 86 }
87 87 );
88 88 myDataTable.subscribe('postRenderEvent',function(oArgs) {
General Comments 0
You need to be logged in to leave comments. Login now