presence/app/assets/javascripts/jquery.ui.chatbox.sstreampresence.js in social_stream-0.26.1 vs presence/app/assets/javascripts/jquery.ui.chatbox.sstreampresence.js in social_stream-0.26.2
- old
+ new
@@ -64,11 +64,11 @@
var options = {color: $(dummy_element).css("color")};
self.elem.uiChatboxTitlebar.effect("highlight", options, 300);
- if (((typeof mustBounceBoxForChatWindow == 'function')&&(mustBounceBoxForChatWindow(self)))||((typeof mustBounceBoxForChatWindow != 'function'))) {
+ if (((typeof PRESENCE.UTILITIES.mustBounceBoxForChatWindow == 'function')&&(PRESENCE.UTILITIES.mustBounceBoxForChatWindow(self)))||((typeof PRESENCE.UTILITIES.mustBounceBoxForChatWindow != 'function'))) {
self.elem.uiChatbox.effect("bounce", {times:3}, 300, function(){
self.highlightLock = false;
self._scrollToBottom();
});
} else {
@@ -183,11 +183,11 @@
)
.attr('role', 'button')
.hover(function() {uiChatboxTitlebarVideo.addClass('ui-state-hover');},
function() {uiChatboxTitlebarVideo.removeClass('ui-state-hover');})
.click(function(event) {
- toggleVideoBox(self)
+ PRESENCE.WINDOW.toggleVideoBox(self)
return false;
})
.appendTo(uiChatboxTitlebar),
uiChatboxTitlebarVideoText = $('<span></span>')
.addClass('ui-icon-circle-triangle-e ' + 'chat-thick ' + ' chat-videothick' )
@@ -202,11 +202,11 @@
)
.attr('role', 'button')
.hover(function() {uiChatboxTitlebarVideoChange.addClass('ui-state-hover');},
function() {uiChatboxTitlebarVideoChange.removeClass('ui-state-hover');})
.click(function(event) {
- toggleVideoBoxChange(self)
+ PRESENCE.WINDOW.toggleVideoBoxChange(self)
return false;
})
.appendTo(uiChatboxTitlebar),
uiChatboxTitlebarVideoText = $('<span></span>')
.addClass('ui-icon-newwin ' + 'chat-thick ' + ' chat-videoPublisherthick' )
@@ -245,11 +245,11 @@
uiChatboxNotify = (self.uiChatboxNotify = $('<div></div>'))
.addClass('ui-widget-content ' +
'ui-chatbox-notify'
)
.click(function(event) {
- onClickChatNotification(self.uiChatboxNotify)
+ PRESENCE.NOTIFICATIONS.onClickChatNotification(self.uiChatboxNotify)
})
.appendTo(uiChatboxContent),
//VideoBox div
@@ -287,10 +287,10 @@
'ui-corner-all'
)
.appendTo(uiChatboxInput)
.keydown(function(event) {
if(event.keyCode && event.keyCode == $.ui.keyCode.ENTER) {
- var userChatDataInputControlBoolean = (((typeof userChatDataInputControl == 'function')&&(userChatDataInputControl()))||((typeof userChatDataInputControl != 'function')));
+ var userChatDataInputControlBoolean = (((typeof PRESENCE.UTILITIES.userChatDataInputControl == 'function')&&(PRESENCE.UTILITIES.userChatDataInputControl()))||((typeof PRESENCE.UTILITIES.userChatDataInputControl != 'function')));
if (userChatDataInputControlBoolean) {
msg = $.trim($(this).val());
if (msg.length > 0) {
self.options.messageSent(self.options.id, self.options.user, msg);
}
\ No newline at end of file