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
f54516aa
Commit
f54516aa
authored
Sep 28, 2017
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
89ec9a6d
79080b35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
17 deletions
+7
-17
spec/register.js
spec/register.js
+3
-4
src/converse-core.js
src/converse-core.js
+4
-3
src/converse-register.js
src/converse-register.js
+0
-10
No files found.
spec/register.js
View file @
f54516aa
...
...
@@ -37,16 +37,15 @@
return
_
.
get
(
_converse
.
chatboxviews
.
get
(
'
controlbox
'
),
'
registerpanel
'
);
},
300
)
.
then
(
function
()
{
var
cbview
=
_converse
.
chatboxviews
.
get
(
'
controlbox
'
);
test_utils
.
openControlBox
();
var
$panels
=
cbview
.
$
(
'
.controlbox-panes
'
);
var
$login
=
$panels
.
children
().
first
();
var
$registration
=
$panels
.
children
().
last
();
var
$register_link
=
cbview
.
$
(
'
a.register-account
'
);
expect
(
$register_link
.
text
()
).
toBe
(
"
Create an account
"
);
$
register_link
.
click
();
var
register_link
=
cbview
.
el
.
querySelector
(
'
a.register-account
'
);
expect
(
register_link
.
textContent
).
toBe
(
"
Create an account
"
);
register_link
.
click
();
test_utils
.
waitUntil
(
function
()
{
return
$registration
.
is
(
'
:visible
'
);
},
300
).
then
(
function
()
{
...
...
src/converse-core.js
View file @
f54516aa
...
...
@@ -2013,15 +2013,16 @@
this
.
connection
=
settings
.
connection
;
}
// TODO: fallback when global history has already been started
Backbone
.
history
.
start
();
function
finishInitialization
()
{
_converse
.
initPlugins
();
_converse
.
initConnection
();
_converse
.
setUpXMLLogging
();
_converse
.
logIn
();
_converse
.
registerGlobalEventHandlers
();
if
(
!
Backbone
.
history
.
started
)
{
Backbone
.
history
.
start
();
}
}
if
(
!
_
.
isUndefined
(
_converse
.
connection
)
&&
...
...
src/converse-register.js
View file @
f54516aa
...
...
@@ -81,7 +81,6 @@
ControlBoxView
:
{
events
:
{
'
click .toggle-register-login
'
:
'
switchToRegisterForm
'
,
},
initialize
()
{
...
...
@@ -89,15 +88,6 @@
this
.
model
.
on
(
'
change:active-form
'
,
this
.
showLoginOrRegisterForm
.
bind
(
this
))
},
switchToRegisterForm
(
ev
)
{
ev
.
preventDefault
();
if
(
this
.
model
.
get
(
'
active-form
'
)
==
"
register
"
)
{
this
.
model
.
set
(
'
active-form
'
,
'
login
'
);
}
else
{
this
.
model
.
set
(
'
active-form
'
,
'
register
'
);
}
},
showLoginOrRegisterForm
()
{
const
{
_converse
}
=
this
.
__super__
;
if
(
_
.
isNil
(
this
.
registerpanel
))
{
...
...
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