Changeset 3610
- Timestamp:
- 03/10/07 18:23:59 (2 years ago)
- Files:
-
- trunk/Panels/JVChatRoomPanel.m (modified) (2 diffs)
- trunk/Resources/roomTopicBanner.js (modified) (1 diff)
- trunk/Views/JVStyleView.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Panels/JVChatRoomPanel.m
r3597 r3610 1464 1464 } 1465 1465 1466 NSArray *args = [NSArray arrayWithObjects:topicString, ( author ? [author title] : [[[self target] topicAuthor] displayName] ), [NSNumber numberWithBool:emptyTopic], nil]; 1466 id authorArg = ( author ? [author title] : [[[self target] topicAuthor] displayName] ); 1467 NSArray *args = [NSArray arrayWithObjects:topicString, ( authorArg ? authorArg : [NSNull null] ), [NSNumber numberWithBool:emptyTopic], nil]; 1467 1468 [[display windowScriptObject] callWebScriptMethod:@"changeTopic" withArguments:args]; 1468 1469 } … … 1480 1481 } 1481 1482 1482 NSArray *args = [NSArray arrayWithObjects:topicString, ( author ? [author title] : [[[self target] topicAuthor] displayName] ), [NSNumber numberWithBool:emptyTopic], nil]; 1483 id authorArg = ( author ? [author title] : [[[self target] topicAuthor] displayName] ); 1484 NSArray *args = [NSArray arrayWithObjects:topicString, ( authorArg ? authorArg : [NSNull null] ), [NSNumber numberWithBool:emptyTopic], nil]; 1483 1485 [[display windowScriptObject] callWebScriptMethod:@"changeTopic" withArguments:args]; 1484 1486 } trunk/Resources/roomTopicBanner.js
r3569 r3610 30 30 topicMessage = document.getElementById( 'topicMessage' ); 31 31 topicMessage.innerHTML = topic; 32 topicMessage.title = topicMessage.innerText + ' set by ' + author;32 topicMessage.title = topicMessage.innerText + ( author ? ' set by ' + author : '' ); 33 33 refreshTopicSize(); 34 34 } trunk/Views/JVStyleView.m
r3608 r3610 383 383 - (void) addBanner:(NSString *) name { 384 384 if( ! _mainFrameReady ) { 385 [self performSelector:_cmd withObject:name afterDelay:0. 5];385 [self performSelector:_cmd withObject:name afterDelay:0.]; 386 386 return; 387 387 }
