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
a306e1a7
Commit
a306e1a7
authored
Apr 19, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear the chatroom input when form was submitted
parent
9b445f84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
converse.js
converse.js
+10
-8
No files found.
converse.js
View file @
a306e1a7
...
@@ -710,11 +710,13 @@
...
@@ -710,11 +710,13 @@
createChatRoom
:
function
(
ev
)
{
createChatRoom
:
function
(
ev
)
{
ev
.
preventDefault
();
ev
.
preventDefault
();
var
name
,
jid
;
var
name
,
jid
,
input
;
if
(
ev
.
type
===
'
click
'
)
{
if
(
ev
.
type
===
'
click
'
)
{
jid
=
$
(
ev
.
target
).
attr
(
'
data-room-jid
'
);
jid
=
$
(
ev
.
target
).
attr
(
'
data-room-jid
'
);
}
else
{
}
else
{
name
=
$
(
ev
.
target
).
find
(
'
input.new-chatroom-name
'
).
val
().
trim
().
toLowerCase
();
input
=
this
.
$el
.
find
(
'
input.new-chatroom-name
'
);
name
=
input
.
val
().
trim
().
toLowerCase
();
input
.
val
(
''
);
// Clear the input
if
(
name
)
{
if
(
name
)
{
jid
=
Strophe
.
escapeNode
(
name
)
+
'
@
'
+
xmppchat
.
muc_domain
;
jid
=
Strophe
.
escapeNode
(
name
)
+
'
@
'
+
xmppchat
.
muc_domain
;
}
else
{
}
else
{
...
@@ -983,7 +985,7 @@
...
@@ -983,7 +985,7 @@
},
},
onChatRoomRoster
:
function
(
roster
,
room
)
{
onChatRoomRoster
:
function
(
roster
,
room
)
{
// underscore size is needed because roster is
o
n object
// underscore size is needed because roster is
a
n object
var
controlboxview
=
xmppchat
.
chatboxesview
.
views
.
controlbox
,
var
controlboxview
=
xmppchat
.
chatboxesview
.
views
.
controlbox
,
roster_size
=
_
.
size
(
roster
),
roster_size
=
_
.
size
(
roster
),
$participant_list
=
this
.
$el
.
find
(
'
.participant-list
'
),
$participant_list
=
this
.
$el
.
find
(
'
.participant-list
'
),
...
...
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