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
3eb3668b
Commit
3eb3668b
authored
Dec 03, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
94830c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
src/converse-spoilers.js
src/converse-spoilers.js
+4
-17
No files found.
src/converse-spoilers.js
View file @
3eb3668b
(
function
(
root
,
factory
)
{
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
// AMD. Register as a module called "myplugin"
define
(
"
converse-spoilers
"
,
[
"
converse
"
],
factory
);
}
else
{
// Browser globals. If you're not using a module loader such as require.js,
// then this line below executes. Make sure that your plugin's <script> tag
// appears after the one from converse.js.
factory
(
converse
);
}
define
([
"
converse-core
"
,
"
strophe.vcard
"
],
factory
);
}(
this
,
function
(
converse
)
{
// Commonly used utilities and variables can be found under the "env"
...
...
@@ -17,8 +9,7 @@
$msg
=
converse
.
env
.
$msg
,
$pres
=
converse
.
env
.
$pres
,
$build
=
converse
.
env
.
$build
,
b64_sha1
=
converse
.
env
.
b64_sha1
;
$
=
converse
.
env
.
jQuery
,
b64_sha1
=
converse
.
env
.
b64_sha1
,
_
=
converse
.
env
.
_
,
moment
=
converse
.
env
.
moment
;
...
...
@@ -52,8 +43,7 @@
/* From the `_converse` object you can get any configuration
* options that the user might have passed in via
* `converse.initialize`. These values are stored in the
* "user_settings" attribute.
* `converse.initialize`.
*
* You can also specify new configuration settings for this
* plugin, or override the default values of existing
...
...
@@ -70,11 +60,8 @@
* converse.initialize({
* "initialize_message": "My plugin has been initialized"
* });
*
* And the configuration setting is then available via the
* `user_settings` attribute:
*/
alert
(
this
.
_converse
.
user_settings
.
initialize_message
);
alert
(
this
.
_converse
.
initialize_message
);
/* Besides `_converse.api.settings.update`, there is also a
* `_converse.api.promises.add` method, which allows you to
...
...
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