Commit 9dd62ebf by Scott

Fix minor coding issues

parent 32ca391c
......@@ -212,7 +212,7 @@ function qa_comment_click(commentid, questionid, parentid, target)
var h=lines.slice(1).join("\n");
if (h.length)
qa_set_outer_html(l, 'comment', h)
qa_set_outer_html(l, 'comment', h);
else
qa_conceal(l, 'comment');
......
......@@ -82,7 +82,7 @@ function qa_wall_post_click(messageid, target)
var h=lines.slice(1).join("\n");
if (h.length)
qa_set_outer_html(l, 'wallpost', h)
qa_set_outer_html(l, 'wallpost', h);
else
qa_conceal(l, 'wallpost');
......@@ -118,7 +118,7 @@ function qa_pm_click(messageid, target, box)
var h = lines.slice(1).join("\n");
if (h.length)
qa_set_outer_html(l, 'pmessage', h)
qa_set_outer_html(l, 'pmessage', h);
else
qa_conceal(l, 'pmessage');
......
......@@ -187,7 +187,7 @@
require_once QA_BASE_DIR.'qa-config.php';
$qa_request_map=is_array(@$QA_CONST_PATH_MAP) ? $QA_CONST_PATH_MAP : array();
$qa_request_map = isset($QA_CONST_PATH_MAP) && is_array($QA_CONST_PATH_MAP) ? $QA_CONST_PATH_MAP : array();
if (defined('QA_WORDPRESS_INTEGRATE_PATH') && strlen(QA_WORDPRESS_INTEGRATE_PATH)) {
define('QA_FINAL_WORDPRESS_INTEGRATE_PATH', QA_WORDPRESS_INTEGRATE_PATH.((substr(QA_WORDPRESS_INTEGRATE_PATH, -1)=='/') ? '' : '/'));
......
......@@ -25,7 +25,7 @@ p {margin-top:0;}
/* Ajax loading spinner */
.qa-waiting {background:url(spinner-icon-14x14.gif) no-repeat center; width:14px; height:14px; display:inline-block; font-size:0; margin:0px 8px 0px 4px; vertical-align:middle;}
.qa-waiting {background:url(spinner-icon-14x14.gif) no-repeat center; width:14px; height:14px; display:inline-block; font-size:0; margin:0 8px 0 4px; vertical-align:middle;}
.qa-favoriting .qa-waiting {position:absolute; padding:18px 0;}
.qa-a-selection .qa-waiting {position:absolute; padding:18px 0; margin-left:-32px;}
......@@ -49,9 +49,9 @@ h2 {font-size:22px; color:#c659ab; padding-top:12px; clear:both;}
.qa-favorite-button,.qa-unfavorite-button {background:url(favorite-heart.png) no-repeat; border:0; height:49px; width:50px;}
.qa-favorite-button {background-position: 0 -49px;}
.qa-favorite-button:hover {background-position: 0 0px;}
.qa-favorite-button:hover {background-position: 0 0;}
.qa-unfavorite-button {background-position: 0 -98px;}
.qa-unfavorite-button:hover {background-position: 0 0px;}
.qa-unfavorite-button:hover {background-position: 0 0;}
.qa-error {background:#fed8d8 url(error-bg.png) repeat-x left top; border:2px solid #c00; color:#c00; font-size:18px; padding:.5em; margin:1em 0; }
.qa-error a {color:#900; text-decoration:underline;}
......@@ -79,7 +79,7 @@ h2 {font-size:22px; color:#c659ab; padding-top:12px; clear:both;}
.qa-widget-full-high {margin-bottom:0;}
.qa-widgets-main-high {margin-bottom:24px;}
.qa-widget-main {margin:16px 0; width:748px;}
.qa-widget-main-bottom {margin-bottom:0px;}
.qa-widget-main-bottom {margin-bottom:0;}
.qa-widget-side {margin:24px 0; width:160px;}
/* Header sections */
......@@ -256,9 +256,9 @@ h2 {font-size:22px; color:#c659ab; padding-top:12px; clear:both;}
.qa-voted-down-button {background-position:-27px -87px; color:#f1c96b;}
.qa-voted-down-button:hover {background-position:-27px -29px; color:#f1c96b;}
.qa-vote-one-button {position:absolute; left:32px; top:0px;}
.qa-vote-first-button {position:absolute; left:10px; top:0px;}
.qa-vote-second-button {position:absolute; left:53px; top:0px;}
.qa-vote-one-button {position:absolute; left:32px; top:0;}
.qa-vote-first-button {position:absolute; left:10px; top:0;}
.qa-vote-second-button {position:absolute; left:53px; top:0;}
.qa-netvote-count {text-align:center; display:block;}
.qa-netvote-count-data {font-size:28px; font-weight:bold;}
......@@ -395,7 +395,7 @@ h2 {font-size:22px; color:#c659ab; padding-top:12px; clear:both;}
.qa-c-item-who-title {font-size:80%; font-weight:bold; color:#6b0000;}
.qa-c-item-who-points {display:none;}
.qa-c-item-flags {color:#f00; font-weight:bold; padding-left:3px;}
.qa-c-item-buttons {display:block; position:absolute; bottom:0px; right:0px;}
.qa-c-item-buttons {display:block; position:absolute; bottom:0; right:0;}
.qa-c-item-buttons .qa-form-light-button {background:none; height:auto; font-size:10px; padding:0;}
......@@ -437,7 +437,7 @@ h2 {font-size:22px; color:#c659ab; padding-top:12px; clear:both;}
.qa-tag-link:hover {text-decoration:underline !important;}
.qa-avatar-image {border:0; vertical-align:middle;}
.qa-avatar-link,.qa-avatar-link:hover {text-decoration:none;}
.qa-favorite-image {background:url(favorite-heart.png) no-repeat; background-position: 0 0px; border:0; height:49px; width:50px; vertical-align:middle; display:inline-block;}
.qa-favorite-image {background:url(favorite-heart.png) no-repeat; background-position: 0 0; border:0; height:49px; width:50px; vertical-align:middle; display:inline-block;}
.qa-q-favorited .qa-q-item-title a, .qa-tag-favorited, .qa-cat-favorited, .qa-user-favorited, .qa-nav-cat-favorited, .qa-browse-cat-favorited {background-image:url(favorite-icon-16x16.png); background-repeat: no-repeat;}
.qa-cat-parent-favorited {background-image:url(favorite-light-icon-16x16.png); background-repeat: no-repeat;}
......@@ -476,4 +476,4 @@ h2 {font-size:22px; color:#c659ab; padding-top:12px; clear:both;}
* html .qa-voted-down-button {background:url(vote-buttons-ie6.png) no-repeat -27px -87px;}
* html .qa-tag-link {background:url(tag-icon-ie6.png) no-repeat left center;}
* html .qa-a-count {background:url(a-count-icon-ie6.png) no-repeat 32px 13px;}
* html .qa-favorite-image {background:url(favorite-heart-ie6.png) no-repeat 0 0px;}
* html .qa-favorite-image {background:url(favorite-heart-ie6.png) no-repeat 0 0;}
......@@ -24,7 +24,7 @@ p {margin-top:0;}
/* Ajax loading spinner */
.qa-waiting {background:url(spinner-icon-14x14.gif) no-repeat center; width:14px; height:14px; display:inline-block; font-size:0; margin:0px 8px 0px 4px; vertical-align:middle;}
.qa-waiting {background:url(spinner-icon-14x14.gif) no-repeat center; width:14px; height:14px; display:inline-block; font-size:0; margin:0 8px 0 4px; vertical-align:middle;}
.qa-favoriting .qa-waiting {position:absolute; padding:6px 4px;}
.qa-a-selection .qa-waiting {position:absolute; padding:7px 0;}
......@@ -49,9 +49,9 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
.qa-favorite-button,.qa-unfavorite-button {background:url(favorite-plus.gif) no-repeat; border:0; height:26px; width:26px;}
.qa-favorite-button {background-position: 0 -26px;}
.qa-favorite-button:hover {background-position: 0 0px;}
.qa-favorite-button:hover {background-position: 0 0;}
.qa-unfavorite-button {background-position: 0 -52px;}
.qa-unfavorite-button:hover {background-position: 0 0px;}
.qa-unfavorite-button:hover {background-position: 0 0;}
.qa-error {background:#fee; border:1px solid #c00; color:#c00; font-size:16px; padding:.5em; margin-bottom:1em; font-weight:bold;}
.qa-error a {color:#900; text-decoration:underline;}
......@@ -148,7 +148,7 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
.qa-form-tall-spacer {background:#E3F4FF; line-height:1px; padding:0; font-size:1px;}
.qa-form-tall-ok {background:#efe; border:1px solid #090; color:#090; font-size:18px; padding:6px; text-align:center;}
.qa-form-tall-label {color:#253845; padding:12px 8px 2px 8px; font-size:13px; font-weight:bold;}
.qa-form-tall-data {padding:0px 8px 6px 8px; width:480px;}
.qa-form-tall-data {padding:0 8px 6px 8px; width:480px;}
.qa-form-tall-text,.qa-form-tall-number {padding:3px;}
.qa-form-tall-text {width:480px; border:1px solid #658296;}
.qa-form-tall-number {width:48px; border:1px solid #658296;}
......@@ -371,7 +371,7 @@ h2 {font-size:16px; padding-top:12px; clear:both;}
.qa-c-item-who-title {font-size:80%; font-weight:bold; color:#900707;}
.qa-c-item-who-points {display:none;}
.qa-c-item-flags {background:#f00; color:#fff; font-weight:bold; padding:2px 5px; display:inline-block;}
.qa-c-item-buttons {display:block; position:absolute; bottom:0px; right:0px;}
.qa-c-item-buttons {display:block; position:absolute; bottom:0; right:0;}
/* Message list */
......
......@@ -114,7 +114,7 @@ input[type="text"].qa-search-field {
padding: 4px 5px;
}
input[type="text"], input[type="password"], textarea, select, checkbox, radio {
input[type="text"], input[type="password"], textarea, select {
border: 1px solid #ddd;
padding: 5px;
color: #777;
......@@ -1891,7 +1891,7 @@ a.qa-browse-cat-link:visited {
.qa-q-view-hidden .qa-tag-link {
color: #ccc;
opacity: 0.5px;
opacity: 0.5;
}
/* Answer view */
......@@ -2360,7 +2360,7 @@ a.qa-browse-cat-link:visited {
height: 14px;
display: inline-block;
font-size: 0;
margin: 0px 8px 0px 4px;
margin: 0 8px 0 4px;
vertical-align: middle;
}
......
......@@ -946,7 +946,6 @@ blockquote p {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
content: '\e82c';
position: absolute;
left: -1.6em;
......@@ -1776,7 +1775,6 @@ blockquote p {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
......@@ -2760,7 +2758,7 @@ input[type="submit"], button {
@media (min-width: 980px) {
.qa-sidepanel {
width: 25%;
padding: 0px;
padding: 0;
float: right;
overflow: hidden;
*zoom: 1;
......@@ -2825,7 +2823,7 @@ input[type="submit"], button {
word-wrap: break-word;
}
.qa-sidepanel h1, .qa-sidepanel h2, .qa-sidepanel h3, .qa-sidepanel h4, .qa-sidepanel h5, .qa-sidepanel h6 {
margin-top: 0px;
margin-top: 0;
}
.qa-sidepanel .qa-widget-side {
padding: 20px;
......@@ -3418,7 +3416,6 @@ input[type="submit"], button {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment