mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 11:56:25 +00:00
fb83d88439
Make sure Trim trailing spaces Fixes http://what.cd/forums.php?action=viewthread&threadid=101865&postid=3478072#post3478072 Trimmed trailing whitespace Treats IP search as if they begin with a | Sorts the Assign To box in staff pms alphabetically. Enable any/all option for tags in request filter Minor tweaks Show all used filters in the sphinx debug table Better detection of jpeg in image.php
26 lines
733 B
JavaScript
26 lines
733 B
JavaScript
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]";
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function Collapse() {
|
|
var collapseLink = $('#collapselink').raw();
|
|
var hide = (collapseLink.innerHTML.substr(0,1) == 'H' ? 1 : 0);
|
|
if($('.row').results() > 0) {
|
|
$('.row').toggle();
|
|
}
|
|
if(hide) {
|
|
collapseLink.innerHTML = 'Show post bodies';
|
|
} else {
|
|
collapseLink.innerHTML = 'Hide post bodies';
|
|
}
|
|
}
|