-
+
${_('Enabled') if plugin_path in c.enabled_plugins else _('Disabled')}
${plugin_path}
@@ -120,7 +120,7 @@
}
var elems = $auth_plugins_input.val().split(',').filter(notEmpty);
var $cur_button = $(e.currentTarget);
- var plugin_id = $cur_button.attr('plugin_id');
+ var plugin_id = $cur_button.data('plugin_id');
if($cur_button.hasClass('active')){
elems.splice(elems.indexOf(plugin_id), 1);
diff --git a/kallithea/templates/base/perms_summary.html b/kallithea/templates/base/perms_summary.html
--- a/kallithea/templates/base/perms_summary.html
+++ b/kallithea/templates/base/perms_summary.html
@@ -11,10 +11,10 @@
%if section != 'global':
${_('Show')}:
-
-
-
-
+
+
+
+
%endif
@@ -109,10 +109,10 @@
}
}
var update_show = function($checkbox){
- var section = $checkbox.attr('section');
+ var section = $checkbox.data('section');
var elems = $('.filter_' + section).each(function(el){
- var perm_type = $checkbox.attr('perm_type');
+ var perm_type = $checkbox.data('perm_type');
var checked = $checkbox.prop('checked');
if(checked){
$('.'+section+'_'+perm_type).show();
diff --git a/kallithea/templates/changelog/changelog.html b/kallithea/templates/changelog/changelog.html
--- a/kallithea/templates/changelog/changelog.html
+++ b/kallithea/templates/changelog/changelog.html
@@ -111,7 +111,7 @@ ${self.repo_context_bar('changelog', c.f
${h.age(cs.date,True)}
|
-
+ |
|
@@ -298,7 +298,7 @@ ${self.repo_context_bar('changelog', c.f
});
$('.expand_commit').on('click',function(e){
- var cid = $(this).attr('commit_id');
+ var cid = $(this).data('commit_id');
$('#C-'+cid).toggleClass('expanded');
//redraw the graph, r and jsdata are bound outside function
diff --git a/kallithea/templates/changeset/diff_block.html b/kallithea/templates/changeset/diff_block.html
--- a/kallithea/templates/changeset/diff_block.html
+++ b/kallithea/templates/changeset/diff_block.html
@@ -4,7 +4,7 @@
cs_repo_name, cs_ref_name, cs_ref_type, cs_rev,
file_diff_data)">
- ↑ ${_('Collapse Diff')} ↑
+ ↑ ${_('Collapse Diff')} ↑
%for id_fid, url_fid, op, a_filename, cs_filename, diff, stats in file_diff_data:
@@ -73,7 +73,7 @@
@@ -126,7 +126,7 @@ $(document).ready(function(){
$('.diff-collapse-button').click(function(e) {
var $button = $(e.currentTarget);
- var $target = $('#' + $button.attr('target'));
+ var $target = $('#' + $button.data('target'));
if($target.hasClass('hidden')){
$target.removeClass('hidden');
$button.html("↑ {0} ↑".format(_TM['Collapse Diff']));
@@ -141,7 +141,7 @@ $(document).ready(function(){
if(target == null){
target = this;
}
- var boxid = $(target).attr('id_for');
+ var boxid = $(target).data('id_for');
if(target.checked){
$('#{0} .inline-comments'.format(boxid)).show();
}else{
diff --git a/kallithea/templates/compare/compare_cs.html b/kallithea/templates/compare/compare_cs.html
--- a/kallithea/templates/compare/compare_cs.html
+++ b/kallithea/templates/compare/compare_cs.html
@@ -75,7 +75,7 @@
${h.link_to(cs.branch,h.url('changelog_home',repo_name=c.cs_repo.repo_name,branch=cs.branch))}
%endif
|
-
+ |
|
@@ -136,13 +136,13 @@
%endif
$('.expand_commit').click(function(e){
- var cid = $(this).attr('commit_id');
+ var cid = $(this).data('commit_id');
$('#C-'+cid).toggleClass('expanded');
r.render(jsdata);
});
$('.gravatar').click(function(e){
- var cid = $(this).attr('commit_id');
+ var cid = $(this).data('commit_id');
$('#row-'+cid).toggleClass('hl', !$('#row-'+cid).hasClass('hl'));
});
});
diff --git a/kallithea/templates/pullrequests/pullrequest_show.html b/kallithea/templates/pullrequests/pullrequest_show.html
--- a/kallithea/templates/pullrequests/pullrequest_show.html
+++ b/kallithea/templates/pullrequests/pullrequest_show.html
@@ -261,12 +261,12 @@ ${self.repo_context_bar('showpullrequest
%for u in [c.pull_request.other_repo.owner]:
${u.full_name}
%endfor
@@ -396,7 +396,7 @@ ${self.repo_context_bar('showpullrequest
$('.missing_reviewer').click(function(){
var $this = $(this);
- addReviewMember($this.attr('user_id'), $this.attr('fname'), $this.attr('lname'), $this.attr('nname'), $this.attr('gravatar_lnk'), $this.attr('gravatar_size'));
+ addReviewMember($this.data('user_id'), $this.data('fname'), $this.data('lname'), $this.data('nname'), $this.data('gravatar_lnk'), $this.data('gravatar_size'));
});
});
|