1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

Change js i18n from gettext to trans tag

This commit is contained in:
zhengxie
2012-10-31 16:14:55 +08:00
parent 767f1097bc
commit 677d62e7fe
11 changed files with 97 additions and 137 deletions

View File

@@ -1,4 +1,4 @@
{% load seahub_tags avatar_tags %}
{% load seahub_tags avatar_tags i18n %}
$('#repos-tabs').tabs({cookie:{expires:1}});
$(function() {
//repo-share-form share-list autocomplete
@@ -23,14 +23,14 @@ $(function() {
//check before post
$('#share-submit-btn').click(function() {
if (!$.trim($('#email_or_group').attr('value'))) {
apply_form_error('repo-share-form', gettext('Input can\'t be empty'));
apply_form_error('repo-share-form', '{% trans "Input cannot be empty" %}');
return false;
}
});
addConfirmTo($('.repo-delete-btn'));
addConfirmTo($('.unshare-btn'), gettext('Confirm to remove shared library?'));
addConfirmTo($('.unshare-btn'), '{% trans "Really remove this shared library?" %}');
$(".download-btn").click(function() {
window.open('{{ SITE_ROOT }}seafile_access_check/?repo_id=' + $(this).attr('data'));