summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-10 14:07:44 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-10 14:07:44 +0100
commit626cea75e122729a76efbbf98011d39d22f72fee (patch)
tree6f4b023a7f35c4684185ece5be039cb78a24d6a3 /module/web
parentwebif user managment (diff)
downloadpyload-626cea75e122729a76efbbf98011d39d22f72fee.tar.xz
new l18n files
Diffstat (limited to 'module/web')
-rw-r--r--module/web/media/default/js/settings_ui.js7
-rw-r--r--module/web/templates/default/admin.html3
-rw-r--r--module/web/templates/default/settings.html4
3 files changed, 10 insertions, 4 deletions
diff --git a/module/web/media/default/js/settings_ui.js b/module/web/media/default/js/settings_ui.js
index 77b28c39c..338556675 100644
--- a/module/web/media/default/js/settings_ui.js
+++ b/module/web/media/default/js/settings_ui.js
@@ -1,3 +1,4 @@
+var success_msg,failed_msg;
var account_dialog;
function show_account_dialog() {
@@ -82,13 +83,13 @@ var SettingsUI = new Class({
"method": "post",
"url": "/json/save_config/" + category,
"onSuccess" : function() {
- notify.alert('Settings saved', {
+ notify.alert(success_msg, {
'className': 'success'
});
},
"onFailure": function() {
- notify.alert('Error occured', {
+ notify.alert(failed_msg, {
'className': 'error'
});
}
@@ -108,7 +109,7 @@ var SettingsUI = new Class({
window.location.reload()
},
"onFailure": function() {
- notify.alert('Error occured', {
+ notify.alert(failed_msg, {
'className': 'error'
});
}
diff --git a/module/web/templates/default/admin.html b/module/web/templates/default/admin.html
index 5b6be26eb..5be649de7 100644
--- a/module/web/templates/default/admin.html
+++ b/module/web/templates/default/admin.html
@@ -5,7 +5,8 @@
{% block content %}
-{{ _("Note: You can only change permissions for webinterface.") }} {{ _("To add user or change passwords use:") }} <b>python pyLoadCore.py -u</b><br>
+{{ _("Note: You can only change permissions for webinterface.") }}
+{{ _("To add user or change passwords use:") }} <b>python pyLoadCore.py -u</b><br>
{{ _("Important: Admin user have always all permissions! Only Admin user can use other clients like CLI and GUI.") }}
<form action="" method="POST">
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html
index 69ab39292..a62aab99f 100644
--- a/module/web/templates/default/settings.html
+++ b/module/web/templates/default/settings.html
@@ -9,6 +9,10 @@
<script type="text/javascript" src="/media/default/js/settings_ui.js"></script>
<script type="text/javascript">
+
+ success_msg = "{{ _("Settings saved.") }}";
+ failed_msg = "{{ _("Error occured.") }}";
+
window.addEvent('domready', function() {
account_dialog = new Fx.Tween($("account_box"));