Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1c5d6d8a
Commit
1c5d6d8a
authored
Jun 20, 2012
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style the online contacts box and the private chat boxes.
parent
65e0ad4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
collective.xmpp.chat.js
collective.xmpp.chat.js
+13
-7
No files found.
collective.xmpp.chat.js
View file @
1c5d6d8a
...
...
@@ -41,10 +41,10 @@ var xmppchat = (function ($, console) {
}
}
if
(
open_chats
===
0
)
{
chatbox
.
css
(
'
right
'
,
'
20
px
'
);
chatbox
.
css
(
'
right
'
,
'
15
px
'
);
}
else
{
width
=
(
open_chats
)
*
(
225
+
7
)
+
20
;
width
=
(
open_chats
)
*
(
225
+
7
)
+
15
;
chatbox
.
css
(
'
right
'
,
width
+
'
px
'
);
}
};
...
...
@@ -70,7 +70,11 @@ var xmppchat = (function ($, console) {
});
};
obj
.
handleCollectionRetrieval
=
function
(
iq
)
{
obj
.
handleError
=
function
(
response
)
{
console
.
log
(
response
);
};
obj
.
handleCollectionRetrieval
=
function
(
response
)
{
// Get the last collection.
return
false
;
};
...
...
@@ -89,8 +93,7 @@ var xmppchat = (function ($, console) {
.
c
(
'
set
'
,
{
'
xmlns
'
:
'
http://jabber.org/protocol/rsm
'
})
.
c
(
'
max
'
)
.
t
(
'
30
'
);
jarnxmpp
.
connection
.
addHandler
(
this
.
handleCollectionRetrieval
,
uri
,
"
iq
"
);
jarnxmpp
.
connection
.
send
(
iq
);
jarnxmpp
.
connection
.
sendIQ
(
iq
,
this
.
handleCollectionRetrieval
,
this
.
handleError
);
};
obj
.
createChatBox
=
function
(
jid
)
{
...
...
@@ -184,10 +187,10 @@ var xmppchat = (function ($, console) {
var
chatbox
=
$
(
"
#
"
+
this
.
hash
(
this
.
chats
[
i
]));
if
(
chatbox
.
css
(
'
display
'
)
!=
'
none
'
)
{
if
(
index
===
0
)
{
chatbox
.
css
(
'
right
'
,
'
20
px
'
);
chatbox
.
css
(
'
right
'
,
'
15
px
'
);
}
else
{
width
=
(
index
)
*
(
225
+
7
)
+
20
;
width
=
(
index
)
*
(
225
+
7
)
+
15
;
chatbox
.
css
(
'
right
'
,
width
+
'
px
'
);
}
index
++
;
...
...
@@ -402,3 +405,6 @@ $(document).bind('jarnxmpp.connected', function() {
}
});
$
(
document
).
ready
(
function
()
{
$
(
'
ul.tabs
'
).
tabs
(
'
div.panes > div
'
);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment