1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fixed topic animation.

This commit is contained in:
max-m 2011-12-03 21:23:13 +01:00
parent 3bf303a612
commit ac6ce5dfac

View File

@ -46,9 +46,17 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
type: 'POST',
success: $.proxy(function (data, textStatus, jqXHR) {
// set new topic
if (data.topic == '') {
$('#topic').wcfBlindOut('vertical', function() {
$('#topic').text('');
});
} else {
if($('#topic').text() != "") $('#topic').text(data.topic);
else {
$('#topic').text(data.topic);
if (data.topic == '') $('#topic').wcfBlindOut();
else $('#topic').wcfBlindIn();
$('#topic').wcfBlindIn();
}
}
// set page-title
$('title').text(this.titleTemplate.fetch(data));