Why No Bounty v0.2:
- deleted questions - reputation comparison fix
This commit is contained in:
parent
c2f907c917
commit
41222fb3f0
1 changed files with 13 additions and 10 deletions
|
@ -46,16 +46,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is the question closed / locked?
|
// Is the question closed / locked?
|
||||||
var status = $("#question .question-status h2 b").text();
|
var questionStatus = $("#question .question-status h2 b");
|
||||||
if (status === "closed" || status === "put on hold" || status == "marked") {
|
if (questionStatus.length !== 0) {
|
||||||
addInformation("the question is closed");
|
var status = questionStatus.get(0).text();
|
||||||
return;
|
if (status === "closed" || status === "put on hold" || status == "marked") {
|
||||||
} else if (status === "locked") {
|
addInformation("the question is closed");
|
||||||
addInformation("the question is locked");
|
return;
|
||||||
return;
|
} else if (status === "locked") {
|
||||||
} else if (status === "deleted") {
|
addInformation("the question is locked");
|
||||||
addInformation("the question is deleted");
|
return;
|
||||||
return;
|
} else if (status === "deleted") {
|
||||||
|
addInformation("the question is deleted");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is the question at least two days old?
|
// Is the question at least two days old?
|
||||||
|
|
Loading…
Reference in a new issue