style/js fixes

This commit is contained in:
albert
2011-11-03 16:30:06 -04:00
parent 694eefd314
commit d09e80d2f4
11 changed files with 45 additions and 42 deletions

View File

@@ -1,8 +1,8 @@
var errors = <%= @post_flag.errors.full_messages.to_json.html_safe %>;
if (errors.length > 0) {
Danbooru.j_error(errors.join("; "));
Danbooru.error(errors.join("; "));
} else {
Danbooru.j_alert("Flag", "Post flagged");
Danbooru.notice("Post flagged");
$("a#approve").show();
$("a#disapprove").show();
}