Gazelle/static/functions/subscriptions.js
Git fb83d88439 10 changes from Fri Sep 9 18:31:41 2011 +0200 to Fri Sep 9 22:33:05 2011 +0200
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
2011-09-10 08:00:10 +00:00

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';
}
}