diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-10-24 05:06:02 +0000 |
---|---|---|
committer | root <root@migration.vz.lan> | 2012-10-24 05:06:08 +0000 |
commit | 4f3e170ec2f2cc6808bbb1452567fff22a9875a2 (patch) | |
tree | a98d88b05c456d79be23655daa35272568d877cd /views/default/beechat | |
parent | fc9430d2665235b3a0d39504ecfa236e8d58c6e1 (diff) | |
download | elgg-4f3e170ec2f2cc6808bbb1452567fff22a9875a2.tar.gz elgg-4f3e170ec2f2cc6808bbb1452567fff22a9875a2.tar.bz2 |
fix bareJid setting.
Diffstat (limited to 'views/default/beechat')
-rw-r--r-- | views/default/beechat/beechat.js.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/views/default/beechat/beechat.js.php b/views/default/beechat/beechat.js.php index 3cdd29d12..51dbbcc08 100644 --- a/views/default/beechat/beechat.js.php +++ b/views/default/beechat/beechat.js.php @@ -1301,7 +1301,7 @@ BeeChat.UI = { if (isroom) var roster = $(this).find('div').filter('[class=' + BeeChat.UI.Resources.StyleClasses.ChatBox.ROOMROSTER + ']'); data.chats[contactBareJid] = { - 'html_content': escape($(this).children().filter('[bareJid=' + contactBareJid + ']').html()), + 'html_content': escape($(this).children().filter('[bareJid="' + contactBareJid + '"]').html()), 'roster_content': isroom?escape(roster.html()):'', 'isroom': $(this).attr('isroom'), 'group_guid': (contactBareJid in g_beechat_rooms)?g_beechat_rooms[contactBareJid]:0, @@ -1368,7 +1368,7 @@ BeeChat.UI = { scrollBoxElmToShow = BeeChat.UI.ScrollBoxes.getScrollBoxElm(key); } - var chatBoxContentElm = chatBoxElm.children().filter('[bareJid=' + key + ']'); + var chatBoxContentElm = chatBoxElm.children().filter('[bareJid="' + key + '"]'); chatBoxContentElm.append(unescape(json.chats[key].html_content)); chatBoxContentElm.attr({scrollTop: chatBoxContentElm.attr('scrollHeight')}); @@ -1571,7 +1571,7 @@ BeeChat.UI.ContactsList = { if (typeof onlineRosterItems[key] != 'object') continue; - var contactElm = contactsListElm.find('li').filter('[bareJid=' + key + ']'); + var contactElm = contactsListElm.find('li').filter('[bareJid="' + key + '"]'); if (contactElm.length == 0) { contactElm = $('<li></li>') @@ -1796,7 +1796,7 @@ BeeChat.UI.ScrollBoxes = { add: function(contactBareJid, isroom) { var scrollBoxesElm = $('#' + BeeChat.UI.Resources.Elements.ID_DIV_SCROLLBOXES); - var scrollBoxElm = scrollBoxesElm.find('ul').children().filter('[bareJid=' + contactBareJid + ']'); + var scrollBoxElm = scrollBoxesElm.find('ul').children().filter('[bareJid="' + contactBareJid + '"]'); if (scrollBoxElm.length == 0) { var availClass = null; @@ -1921,7 +1921,7 @@ BeeChat.UI.ScrollBoxes = { */ getScrollBoxElm: function(contactBareJid) { - return $('#' + BeeChat.UI.Resources.Elements.ID_DIV_SCROLLBOXES).find('ul').children().filter('[bareJid=' + contactBareJid + ']'); + return $('#' + BeeChat.UI.Resources.Elements.ID_DIV_SCROLLBOXES).find('ul').children().filter('[bareJid="' + contactBareJid + '"]'); } }; @@ -1941,7 +1941,7 @@ BeeChat.UI.ChatBoxes = { { var chatBoxes = $('#' + BeeChat.UI.Resources.Elements.ID_DIV_CHATBOXES); - if ($(chatBoxes).children().filter('[bareJid=' + contactBareJid + ']').length == 0) { + if ($(chatBoxes).children().filter('[bareJid="' + contactBareJid + '"]').length == 0) { var chatBox = $('<div></div>') .attr('class', isroom ? BeeChat.UI.Resources.StyleClasses.ChatBox.MAIN : BeeChat.UI.Resources.StyleClasses.ChatBox.MAIN) .attr('bareJid', contactBareJid) @@ -2024,8 +2024,8 @@ BeeChat.UI.ChatBoxes = { takeStand: function(contactBareJid) { var chatBoxesElm = $('#' + BeeChat.UI.Resources.Elements.ID_DIV_CHATBOXES).children(); - var chatBoxElm = chatBoxesElm.filter('[bareJid=' + contactBareJid + ']'); - var chatBoxContentElm = chatBoxElm.children().filter('[bareJid=' + contactBareJid + ']'); + var chatBoxElm = chatBoxesElm.filter('[bareJid="' + contactBareJid + '"]'); + var chatBoxContentElm = chatBoxElm.children().filter('[bareJid="' + contactBareJid + '"]'); var scrollBoxesElm = $('#' + BeeChat.UI.Resources.Elements.ID_DIV_SCROLLBOXES); var scrollBoxElm = BeeChat.UI.ScrollBoxes.getScrollBoxElm(contactBareJid); @@ -2108,7 +2108,7 @@ BeeChat.UI.ChatBoxes = { chatBoxElm = BeeChat.UI.ChatBoxes.getChatBoxElm(contactBareJid); } - //var chatBoxContentElm = chatBoxElm.children().filter('[bareJid=' + contactBareJid + ']'); + //var chatBoxContentElm = chatBoxElm.children().filter('[bareJid="' + contactBareJid + '"]'); var roster = chatBoxElm.find('div').filter('[class=' + BeeChat.UI.Resources.StyleClasses.ChatBox.ROOMROSTER + ']'); if (availability == 'unavailable') { @@ -2141,7 +2141,7 @@ BeeChat.UI.ChatBoxes = { chatBoxElm = BeeChat.UI.ChatBoxes.getChatBoxElm(contactBareJid); } - var chatBoxContentElm = chatBoxElm.children().filter('[bareJid=' + contactBareJid + ']'); + var chatBoxContentElm = chatBoxElm.children().filter('[bareJid="' + contactBareJid + '"]'); chatBoxContentElm.find('p').filter('[class=' + BeeChat.UI.Resources.StyleClasses.ChatBox.STATE + ']').remove(); @@ -2185,7 +2185,7 @@ BeeChat.UI.ChatBoxes = { */ updateChatState: function(contactBareJid, msg) { - var chatBoxContentElm = BeeChat.UI.ChatBoxes.getChatBoxElm(contactBareJid).children().filter('[bareJid=' + contactBareJid + ']'); + var chatBoxContentElm = BeeChat.UI.ChatBoxes.getChatBoxElm(contactBareJid).children().filter('[bareJid="' + contactBareJid + '"]'); $(msg).children().each(function() { if (this.tagName == BeeChat.Message.ChatStates.COMPOSING) { @@ -2232,7 +2232,7 @@ BeeChat.UI.ChatBoxes = { */ getChatBoxElm: function(contactBareJid) { - return $('#' + BeeChat.UI.Resources.Elements.ID_DIV_CHATBOXES).children().filter('[bareJid=' + contactBareJid + ']'); + return $('#' + BeeChat.UI.Resources.Elements.ID_DIV_CHATBOXES).children().filter('[bareJid="' + contactBareJid + '"]'); } }; |