cancel link is now a button, js formatting consistency, removed extra styling
This commit is contained in:
parent
56e061db72
commit
d410f4f424
|
@ -217,8 +217,7 @@ $(document).ready(function() {
|
|||
box.html($("#comment_form").clone());
|
||||
box.find("ol").remove();
|
||||
|
||||
console.log(box.find('button.comment-preview'));
|
||||
box.find('button.comment-preview').after('<a class="comment-cancel" href="#">Cancel</a>');
|
||||
box.find("button.comment-preview").after(" \n <button class=\"comment-cancel\" name=\"button\" type=\"button\">Cancel</button>");
|
||||
|
||||
box.find("textarea").focus();
|
||||
|
||||
|
@ -231,8 +230,8 @@ $(document).ready(function() {
|
|||
return false;
|
||||
});
|
||||
|
||||
$("a.comment-cancel").live("click", function() {
|
||||
$(this).parents('div.comment_reply form').remove();
|
||||
$("button.comment-cancel").live("click", function() {
|
||||
$(this).parents("div.comment_reply form").remove();
|
||||
});
|
||||
|
||||
$("a.comment_editor").live("click", function() {
|
||||
|
|
|
@ -553,15 +553,10 @@ div.comment_reply form {
|
|||
padding-top: 1em;
|
||||
}
|
||||
|
||||
div.comment_reply a.comment-cancel {
|
||||
margin-left: 15px;
|
||||
div.comment_reply button.comment-cancel {
|
||||
color: #AC130D;
|
||||
}
|
||||
|
||||
div.comment_reply a.comment-cancel:hover {
|
||||
color: #DD4B3C;
|
||||
}
|
||||
|
||||
a.pagelink {
|
||||
border: 1px solid #ddd;
|
||||
background-color: #fbfbfb;
|
||||
|
|
Loading…
Reference in a new issue