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
2b8919db
Commit
2b8919db
authored
Feb 13, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #774
parent
3d9e4780
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
docs/CHANGES.md
docs/CHANGES.md
+2
-1
src/converse-core.js
src/converse-core.js
+6
-3
src/converse.js
src/converse.js
+3
-5
src/utils.js
src/utils.js
+0
-1
No files found.
docs/CHANGES.md
View file @
2b8919db
# Changelog
## 2.0.6 (Unreleased)
-
Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]
-
#486 Honor existing mam user configuration [throwaway42]
-
#749 /me will show your contact's name in the sent field [jcbrand]
-
Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited)
[jcbrand]
-
#774 Browser language (fr-fr or fr) is not detected by default
[jcbrand]
## 2.0.5 (2017-02-01)
-
#743, #751, #753 Update to Strophe 1.2.12. SASL-EXTERNAL now has reduced priority, so it won't
...
...
src/converse-core.js
View file @
2b8919db
...
...
@@ -11,6 +11,7 @@
"
jquery
"
,
"
underscore
"
,
"
polyfill
"
,
"
locales
"
,
"
utils
"
,
"
moment_with_locales
"
,
"
strophe
"
,
...
...
@@ -19,7 +20,7 @@
"
backbone.browserStorage
"
,
"
backbone.overview
"
,
],
factory
);
}(
this
,
function
(
$
,
_
,
dummy
,
utils
,
moment
,
Strophe
,
pluggable
)
{
}(
this
,
function
(
$
,
_
,
dummy
,
locales
,
utils
,
moment
,
Strophe
,
pluggable
)
{
/*
* Cannot use this due to Safari bug.
* See https://github.com/jcbrand/converse.js/issues/196
...
...
@@ -190,8 +191,10 @@
// Detect support for the user's locale
// ------------------------------------
var
locales
=
typeof
locales
===
"
undefined
"
?
{}
:
locales
;
this
.
isConverseLocale
=
function
(
locale
)
{
return
typeof
locales
[
locale
]
!==
"
undefined
"
;
};
locales
=
_
.
isUndefined
(
locales
)
?
{}
:
locales
;
this
.
isConverseLocale
=
function
(
locale
)
{
return
!
_
.
isUndefined
(
locales
[
locale
]);
};
this
.
isMomentLocale
=
function
(
locale
)
{
return
moment
.
locale
()
!==
moment
.
locale
(
locale
);
};
if
(
!
moment
.
locale
)
{
//moment.lang is deprecated after 2.8.1, use moment.locale instead
moment
.
locale
=
moment
.
lang
;
...
...
src/converse.js
View file @
2b8919db
...
...
@@ -8,16 +8,14 @@ if (typeof define !== 'undefined') {
/* When running tests, define is not defined. */
define
(
"
converse
"
,
[
"
converse-api
"
,
// PLEASE NOTE: By default all translations are included.
// You can modify the file src/locales.js to include only those
// translations that you care about.
/* START: Removable components
* --------------------
* Any of the following components may be removed if they're not needed.
*/
"
locales
"
,
// Translations for converse.js. This line can be removed
// to remove *all* translations, or you can modify the
// file src/locales.js to include only those
// translations that you care about.
"
converse-chatview
"
,
// Renders standalone chat boxes for single user chat
"
converse-controlbox
"
,
// The control box
"
converse-bookmarks
"
,
// XEP-0048 Bookmarks
...
...
src/utils.js
View file @
2b8919db
...
...
@@ -208,7 +208,6 @@
locale
=
utils
.
isLocaleAvailable
(
window
.
navigator
.
systemLanguage
,
library_check
);
}
return
locale
||
'
en
'
;
},
fadeIn
:
function
(
el
,
callback
)
{
...
...
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