mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
Empty commit
This commit is contained in:
parent
97a5f9ba93
commit
7748742c9f
@ -2,10 +2,15 @@ function Subscribe(topicid) {
|
||||
ajax.get("userhistory.php?action=thread_subscribe&topicid=" + topicid + "&auth=" + authkey, function() {
|
||||
var subscribeLink = $("#subscribelink" + topicid).raw();
|
||||
if(subscribeLink) {
|
||||
if(subscribeLink.firstChild.nodeValue.substr(1,1) == 'U') {
|
||||
subscribeLink.firstChild.nodeValue = "Subscribe";
|
||||
} else {
|
||||
subscribeLink.firstChild.nodeValue = "Unsubscribe";
|
||||
if(subscribeLink.firstChild.nodeValue.charAt(0) == '[') {
|
||||
subscribeLink.firstChild.nodeValue = subscribeLink.firstChild.nodeValue.charAt(1) == 'U'
|
||||
? '[Subscribe]'
|
||||
: '[Unsubscribe]';
|
||||
}
|
||||
else {
|
||||
subscribeLink.firstChild.nodeValue = subscribeLink.firstChild.nodeValue.charAt(0) == 'U'
|
||||
? "Subscribe"
|
||||
: "Unsubscribe";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user