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
db550b3e
Commit
db550b3e
authored
Aug 05, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `controlboxInitialized` to `controlBoxInitialized`
to conform to conventions
parent
ef5ecb2f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
src/converse-controlbox.js
src/converse-controlbox.js
+5
-5
src/converse-muc-views.js
src/converse-muc-views.js
+1
-1
src/converse-register.js
src/converse-register.js
+2
-2
src/converse-rosterview.js
src/converse-rosterview.js
+1
-1
No files found.
src/converse-controlbox.js
View file @
db550b3e
...
@@ -152,7 +152,7 @@ converse.plugins.add('converse-controlbox', {
...
@@ -152,7 +152,7 @@ converse.plugins.add('converse-controlbox', {
sticky_controlbox
:
false
sticky_controlbox
:
false
});
});
_converse
.
api
.
promises
.
add
(
'
control
b
oxInitialized
'
);
_converse
.
api
.
promises
.
add
(
'
control
B
oxInitialized
'
);
const
addControlBox
=
()
=>
_converse
.
chatboxes
.
add
({
'
id
'
:
'
controlbox
'
});
const
addControlBox
=
()
=>
_converse
.
chatboxes
.
add
({
'
id
'
:
'
controlbox
'
});
...
@@ -171,7 +171,7 @@ converse.plugins.add('converse-controlbox', {
...
@@ -171,7 +171,7 @@ converse.plugins.add('converse-controlbox', {
}
}
},
},
onReconnection
:
function
noop
()
{}
onReconnection
:
function
onReconnection
()
{}
});
});
...
@@ -199,11 +199,11 @@ converse.plugins.add('converse-controlbox', {
...
@@ -199,11 +199,11 @@ converse.plugins.add('converse-controlbox', {
* Triggered when the _converse.ControlBoxView has been initialized and therefore
* Triggered when the _converse.ControlBoxView has been initialized and therefore
* exists. The controlbox contains the login and register forms when the user is
* exists. The controlbox contains the login and register forms when the user is
* logged out and a list of the user's contacts and group chats when logged in.
* logged out and a list of the user's contacts and group chats when logged in.
* @event _converse#control
b
oxInitialized
* @event _converse#control
B
oxInitialized
* @type { _converse.ControlBoxView }
* @type { _converse.ControlBoxView }
* @example _converse.api.listen.on('control
b
oxInitialized', view => { ... });
* @example _converse.api.listen.on('control
B
oxInitialized', view => { ... });
*/
*/
_converse
.
api
.
trigger
(
'
control
b
oxInitialized
'
,
this
);
_converse
.
api
.
trigger
(
'
control
B
oxInitialized
'
,
this
);
_converse
.
api
.
trigger
(
'
chatBoxInitialized
'
,
this
);
_converse
.
api
.
trigger
(
'
chatBoxInitialized
'
,
this
);
},
},
...
...
src/converse-muc-views.js
View file @
db550b3e
...
@@ -1937,7 +1937,7 @@ converse.plugins.add('converse-muc-views', {
...
@@ -1937,7 +1937,7 @@ converse.plugins.add('converse-muc-views', {
}
}
});
});
_converse
.
api
.
listen
.
on
(
'
control
b
oxInitialized
'
,
(
view
)
=>
{
_converse
.
api
.
listen
.
on
(
'
control
B
oxInitialized
'
,
(
view
)
=>
{
if
(
!
_converse
.
allow_muc
)
{
if
(
!
_converse
.
allow_muc
)
{
return
;
return
;
}
}
...
...
src/converse-register.js
View file @
db550b3e
...
@@ -139,7 +139,7 @@ converse.plugins.add('converse-register', {
...
@@ -139,7 +139,7 @@ converse.plugins.add('converse-register', {
function
setActiveForm
(
value
)
{
function
setActiveForm
(
value
)
{
_converse
.
api
.
waitUntil
(
'
control
b
oxInitialized
'
).
then
(()
=>
{
_converse
.
api
.
waitUntil
(
'
control
B
oxInitialized
'
).
then
(()
=>
{
const
controlbox
=
_converse
.
chatboxes
.
get
(
'
controlbox
'
)
const
controlbox
=
_converse
.
chatboxes
.
get
(
'
controlbox
'
)
controlbox
.
set
({
'
active-form
'
:
value
});
controlbox
.
set
({
'
active-form
'
:
value
});
}).
catch
(
_
.
partial
(
_converse
.
log
,
_
,
Strophe
.
LogLevel
.
FATAL
));
}).
catch
(
_
.
partial
(
_converse
.
log
,
_
,
Strophe
.
LogLevel
.
FATAL
));
...
@@ -684,7 +684,7 @@ converse.plugins.add('converse-register', {
...
@@ -684,7 +684,7 @@ converse.plugins.add('converse-register', {
});
});
/************************ BEGIN Event Handlers ************************/
/************************ BEGIN Event Handlers ************************/
_converse
.
api
.
listen
.
on
(
'
control
b
oxInitialized
'
,
view
=>
{
_converse
.
api
.
listen
.
on
(
'
control
B
oxInitialized
'
,
view
=>
{
view
.
model
.
on
(
'
change:active-form
'
,
view
.
showLoginOrRegisterForm
,
view
);
view
.
model
.
on
(
'
change:active-form
'
,
view
.
showLoginOrRegisterForm
,
view
);
});
});
/************************ END Event Handlers ************************/
/************************ END Event Handlers ************************/
...
...
src/converse-rosterview.js
View file @
db550b3e
...
@@ -956,7 +956,7 @@ converse.plugins.add('converse-rosterview', {
...
@@ -956,7 +956,7 @@ converse.plugins.add('converse-rosterview', {
});
});
_converse
.
api
.
listen
.
on
(
'
control
b
oxInitialized
'
,
(
view
)
=>
{
_converse
.
api
.
listen
.
on
(
'
control
B
oxInitialized
'
,
(
view
)
=>
{
function
insertRoster
()
{
function
insertRoster
()
{
if
(
!
view
.
model
.
get
(
'
connected
'
)
||
_converse
.
authentication
===
_converse
.
ANONYMOUS
)
{
if
(
!
view
.
model
.
get
(
'
connected
'
)
||
_converse
.
authentication
===
_converse
.
ANONYMOUS
)
{
return
;
return
;
...
...
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