diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -344,7 +344,7 @@ var _run_callbacks = function(callbacks) if(typeof(func)=='function'){ try{ func(); - }catch (err){}; + }catch (err){} } } } @@ -393,7 +393,7 @@ function asynchtml(url, $target, success $target.css('opacity','1.0'); }) ; -}; +} function ajaxGET(url, success, failure) { if(failure === undefined) { @@ -1346,7 +1346,7 @@ function ajaxActionRevokePermission(url, } ajaxPOST(url, query_params, success, failure); -}; +} /* Multi selectors */ diff --git a/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html b/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html --- a/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html +++ b/kallithea/templates/admin/repo_groups/repo_group_edit_perms.html @@ -110,7 +110,7 @@ ${h.end_form()} var recursive = $('input[name=recursive]:checked').val(); ajaxActionRevokePermission(url, obj_id, obj_type, field_id, {recursive:recursive}); } - }; + } $(document).ready(function () { if (!$('#perm_new_member_name').hasClass('error')) { diff --git a/kallithea/templates/admin/repos/repo_edit_permissions.html b/kallithea/templates/admin/repos/repo_edit_permissions.html --- a/kallithea/templates/admin/repos/repo_edit_permissions.html +++ b/kallithea/templates/admin/repos/repo_edit_permissions.html @@ -94,7 +94,7 @@ ${h.end_form()} if (confirm(revoke_msg)){ ajaxActionRevokePermission(url, obj_id, obj_type, field_id); } - }; + } $(document).ready(function () { if (!$('#perm_new_member_name').hasClass('error')) { diff --git a/kallithea/templates/admin/settings/settings_hooks.html b/kallithea/templates/admin/settings/settings_hooks.html --- a/kallithea/templates/admin/settings/settings_hooks.html +++ b/kallithea/templates/admin/settings/settings_hooks.html @@ -61,5 +61,5 @@ function delete_hook(hook_id, field_id) } var postData = {'hook_id': hook_id}; ajaxPOST(sUrl, postData, success, failure); -}; +} diff --git a/kallithea/templates/admin/user_groups/user_group_edit_perms.html b/kallithea/templates/admin/user_groups/user_group_edit_perms.html --- a/kallithea/templates/admin/user_groups/user_group_edit_perms.html +++ b/kallithea/templates/admin/user_groups/user_group_edit_perms.html @@ -99,7 +99,7 @@ ${h.end_form()} if (confirm(revoke_msg)){ ajaxActionRevokePermission(url, obj_id, obj_type, field_id); } - }; + } $(document).ready(function () { if (!$('#perm_new_member_name').hasClass('error')) {