summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/tag/controllers/admin_tags.php4
-rw-r--r--modules/tag/js/tag.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php
index 3301566b..ced73d65 100644
--- a/modules/tag/controllers/admin_tags.php
+++ b/modules/tag/controllers/admin_tags.php
@@ -81,7 +81,7 @@ class Admin_Tags_Controller extends Admin_Controller {
kohana::show_404();
}
- //Don't use a form as the form is dynamically created in the js
+ // Don't use a form as the form is dynamically created in the js
$post = new Validation($_POST);
$post->add_rules("name", "required", "length[1,64]");
$valid = $post->validate();
@@ -89,7 +89,7 @@ class Admin_Tags_Controller extends Admin_Controller {
$new_name = $this->input->post("name");
$new_tag = ORM::factory("tag")->where("name", $new_name)->find();
if ($new_tag->loaded) {
- $error_msg = "There is already a tag with that name";
+ $error_msg = t("There is already a tag with that name")->__toString();
$valid = false;
}
} else {
diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js
index d656da36..52c695c6 100644
--- a/modules/tag/js/tag.js
+++ b/modules/tag/js/tag.js
@@ -69,7 +69,7 @@ function editInPlace(element) {
window.location.reload();
} else if (data.result == "error") {
$("#gRenameTagForm #name")
- .css("border", "2px solid red")
+ .addClass("gError")
.focus();
$("#gTagAdmin").before("<p id=\"gEditErrorMessage\" class=\"gError\">" + data.message + "</p>");
}