upgraded to jquery 1.5.1, fixed comment voting ajax

This commit is contained in:
albert
2011-03-08 18:23:16 -05:00
parent a281bf03ed
commit 2b2be3263b
12 changed files with 122 additions and 275 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,22 +1,22 @@
$(document).ready(function() {
Cookie.setup();
// $("#hide-upgrade-account-link").click(function() {
// $("#upgrade-account").hide();
// Cookie.put('hide-upgrade-account', '1', 7);
// });
// $("#hide-upgrade-account-link").click(function() {
// $("#upgrade-account").hide();
// Cookie.put('hide-upgrade-account', '1', 7);
// });
// Table striping
$("table.striped tbody tr:even").addClass("even");
$("table.striped tbody tr:odd").addClass("odd");
// Comment listing
$(".comment-section form").hide();
$(".comment-section input.expand-comment-response").click(function() {
var post_id = $(this).closest(".comment-section").attr("data-post-id");
$(".comment-section[data-post-id=" + post_id + "] form").show();
$(this).hide();
});
// Comment listing
$(".comment-section form").hide();
$(".comment-section input.expand-comment-response").click(function() {
var post_id = $(this).closest(".comment-section").attr("data-post-id");
$(".comment-section[data-post-id=" + post_id + "] form").show();
$(this).hide();
});
// Image resize sidebar
$("#resize-links").hide();
@@ -29,11 +29,11 @@ $(document).ready(function() {
image.attr("height", target.attr("data-height"));
e.preventDefault();
});
$("#resize-link a").click(function(e) {
$("#resize-links").toggle();
e.preventDefault();
});
$("#resize-link a").click(function(e) {
$("#resize-links").toggle();
e.preventDefault();
});
});

File diff suppressed because one or more lines are too long

View File

@@ -2,7 +2,7 @@
display: none !important; }
body, div, h1, h2, h3, h4, h5, h6, p, ul, li, dd, dt {
font-family: verdana, sans-serif;
font-family: Verdana, Geneva, sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
@@ -252,6 +252,8 @@ div#c-pools div#a-edit ul.ui-sortable {
/*** Comments ***/
div.comments-for-post div.list-of-comments article {
margin-bottom: 2em; }
div.comments-for-post div.list-of-comments article span.comment-score {
color: #CCC; }
div.comments-for-post div.list-of-comments article div.author {
width: 20%;
float: left; }
@@ -263,15 +265,25 @@ div.comments-for-post div.comment-preview {
width: 40em;
margin-bottom: 2em; }
div.comments div.index div.preview {
div#c-comments div#a-index div.header span.info {
margin-right: 1.5em; }
div#c-comments div#a-index div.header strong, div#c-comments div#a-index div.header time {
margin-right: 0.3em; }
div#c-comments div#a-index div.header time {
font-weight: bold; }
div#c-comments div#a-index div.header div.list-of-tags a {
margin-right: 0.5em; }
div#c-comments div#a-index div.header div.notices {
margin: 1em 0; }
div#c-comments div#a-index div.preview {
float: left;
width: 180px; }
div.comments div.index div.post {
div#c-comments div#a-index div.post {
margin-bottom: 4em; }
div.comments div.index div.post div.comments-for-post {
div#c-comments div#a-index div.post div.comments-for-post {
float: left;
width: 55em; }
div.comments div.index div.post div.comments-for-post h1 {
div#c-comments div#a-index div.post div.comments-for-post h1 {
font-size: 1.2em; }
/*** Favorites ***/
@@ -342,33 +354,6 @@ div.post_histories div.index div.post {
div#unapprove-dialog p {
margin-bottom: 1em; }
/*** Comments ***/
div.comment-response > div {
margin-top: 1em; }
div.comment-list > article {
margin-bottom: 1em;
display: block; }
div.comment-list > article > header {
float: left;
width: 15em; }
div.comment-list > article > div {
float: left;
width: 40em; }
div.comments div.index div.header span.info {
margin-right: 1.5em; }
div.comments div.index div.header strong, div.comments div.index div.header time {
margin-right: 0.3em; }
div.comments div.index div.header time {
font-weight: bold; }
div.comments div.index div.header div.list-of-tags a {
margin-right: 0.5em; }
div.comments div.index div.header div.notices {
margin: 1em 0; }
/*** Sessions ***/
div#sessions div#new section {
width: 30em;

View File

@@ -6,7 +6,7 @@ $link_hover_color: #9093FF;
}
body, div, h1, h2, h3, h4, h5, h6, p, ul, li, dd, dt {
font-family: verdana, sans-serif;
font-family: Verdana, Geneva, sans-serif;
font-size: 100%;
margin: 0;
padding: 0;
@@ -377,6 +377,10 @@ div.comments-for-post {
article {
margin-bottom: 2em;
span.comment-score {
color: #CCC;
}
div.author {
width: 20%;
float: left;
@@ -396,8 +400,32 @@ div.comments-for-post {
}
}
div.comments {
div.index {
div#c-comments {
div#a-index {
div.header {
span.info {
margin-right: 1.5em;
}
strong, time {
margin-right: 0.3em;
}
time {
font-weight: bold;
}
div.list-of-tags {
a {
margin-right: 0.5em;
}
}
div.notices {
margin: 1em 0;
}
}
div.preview {
float: left;
width: 180px;
@@ -559,58 +587,6 @@ div#unapprove-dialog {
}
/*** Comments ***/
div.comment-response {
}
div.comment-response > div {
margin-top: 1em;
}
div.comment-list > article {
margin-bottom: 1em;
display: block;
}
div.comment-list > article > header {
float: left;
width: 15em;
}
div.comment-list > article > div {
float: left;
width: 40em;
}
div.comments {
div.index {
div.header {
span.info {
margin-right: 1.5em;
}
strong, time {
margin-right: 0.3em;
}
time {
font-weight: bold;
}
div.list-of-tags {
a {
margin-right: 0.5em;
}
}
div.notices {
margin: 1em 0;
}
}
}
}
/*** Sessions ***/
div#sessions {
div#new {