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
1bae42b1
Commit
1bae42b1
authored
Dec 20, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also use `_converse` as pluggable object reference.
parent
1050650c
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
23 deletions
+22
-23
docs/source/plugin_development.rst
docs/source/plugin_development.rst
+1
-1
src/converse-bookmarks.js
src/converse-bookmarks.js
+1
-1
src/converse-controlbox.js
src/converse-controlbox.js
+1
-1
src/converse-core.js
src/converse-core.js
+2
-3
src/converse-dragresize.js
src/converse-dragresize.js
+1
-1
src/converse-muc.js
src/converse-muc.js
+3
-3
src/converse-notification.js
src/converse-notification.js
+1
-1
src/converse-otr.js
src/converse-otr.js
+9
-9
src/converse-ping.js
src/converse-ping.js
+1
-1
src/converse-register.js
src/converse-register.js
+2
-2
No files found.
docs/source/plugin_development.rst
View file @
1bae42b1
...
...
@@ -134,7 +134,7 @@ An example plugin
sendPresence: function (type, status_message, jid) {
// The "_converse" object is available via the __super__
// attribute.
var _converse = this.__super__.converse;
var _converse = this.__super__.
_
converse;
// Custom code can come here
// ...
...
...
src/converse-bookmarks.js
View file @
1bae42b1
...
...
@@ -186,7 +186,7 @@
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
converse
;
var
_converse
=
this
.
_
converse
;
// Configuration values for this plugin
// ====================================
// Refer to docs/source/configuration.rst for explanations of these
...
...
src/converse-controlbox.js
View file @
1bae42b1
...
...
@@ -201,7 +201,7 @@
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
converse
;
var
_converse
=
this
.
_
converse
;
this
.
updateSettings
({
allow_logout
:
true
,
default_domain
:
undefined
,
...
...
src/converse-core.js
View file @
1bae42b1
...
...
@@ -49,7 +49,7 @@
_converse
.
emit
=
_converse
.
trigger
;
// Make converse pluggable
pluggable
.
enable
(
_converse
,
'
converse
'
,
'
pluggable
'
);
pluggable
.
enable
(
_converse
,
'
_
converse
'
,
'
pluggable
'
);
// Module-level constants
_converse
.
STATUS_WEIGHTS
=
{
...
...
@@ -1937,8 +1937,7 @@
_converse
.
pluggable
.
initializePlugins
({
'
updateSettings
'
:
updateSettings
,
// TODO: rename
'
converse
'
:
_converse
'
_converse
'
:
_converse
});
_converse
.
emit
(
'
pluginsInitialized
'
);
_converse
.
_initialize
();
...
...
src/converse-dragresize.js
View file @
1bae42b1
...
...
@@ -301,7 +301,7 @@
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
converse
;
var
_converse
=
this
.
_
converse
;
this
.
updateSettings
({
allow_dragresize
:
true
,
});
...
...
src/converse-muc.js
View file @
1bae42b1
...
...
@@ -132,7 +132,7 @@
ControlBoxView
:
{
renderContactsPanel
:
function
()
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
this
.
__super__
.
renderContactsPanel
.
apply
(
this
,
arguments
);
if
(
_converse
.
allow_muc
)
{
this
.
roomspanel
=
new
_converse
.
RoomsPanel
({
...
...
@@ -153,7 +153,7 @@
},
onConnected
:
function
()
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
this
.
__super__
.
onConnected
.
apply
(
this
,
arguments
);
if
(
!
this
.
model
.
get
(
'
connected
'
))
{
return
;
...
...
@@ -183,7 +183,7 @@
},
featureAdded
:
function
(
feature
)
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
if
((
feature
.
get
(
'
var
'
)
===
Strophe
.
NS
.
MUC
)
&&
(
_converse
.
allow_muc
))
{
this
.
setMUCDomain
(
feature
.
get
(
'
from
'
));
}
...
...
src/converse-notification.js
View file @
1bae42b1
...
...
@@ -25,7 +25,7 @@
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
converse
;
var
_converse
=
this
.
_
converse
;
_converse
.
supports_html5_notification
=
"
Notification
"
in
window
;
this
.
updateSettings
({
...
...
src/converse-otr.js
View file @
1bae42b1
...
...
@@ -109,7 +109,7 @@
},
createMessage
:
function
(
message
,
delay
,
original_stanza
)
{
var
_converse
=
this
.
__super__
.
converse
,
var
_converse
=
this
.
__super__
.
_
converse
,
text
=
_
.
propertyOf
(
message
.
querySelector
(
'
body
'
))(
'
textContent
'
);
if
((
!
text
)
||
(
!
_converse
.
allow_otr
))
{
...
...
@@ -136,7 +136,7 @@
},
getSession
:
function
(
callback
)
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
var
cipher
=
CryptoJS
.
lib
.
PasswordBasedCipher
;
var
pass
,
instance_tag
,
saved_key
,
pass_check
;
if
(
_converse
.
cache_otr_key
)
{
...
...
@@ -227,7 +227,7 @@
// send the query message to them.
this
.
save
({
'
otr_status
'
:
UNENCRYPTED
});
this
.
getSession
(
function
(
session
)
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
this
.
otr
=
new
otr
.
OTR
({
fragment_size
:
140
,
send_interval
:
200
,
...
...
@@ -274,7 +274,7 @@
},
initialize
:
function
()
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
this
.
__super__
.
initialize
.
apply
(
this
,
arguments
);
this
.
model
.
on
(
'
change:otr_status
'
,
this
.
onOTRStatusChanged
,
this
);
this
.
model
.
on
(
'
showOTRError
'
,
this
.
showOTRError
,
this
);
...
...
@@ -302,7 +302,7 @@
},
onMessageSubmitted
:
function
(
text
)
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
if
(
!
_converse
.
connection
.
authenticated
)
{
return
this
.
showHelpMessages
(
[
'
Sorry, the connection has been lost,
'
+
...
...
@@ -347,7 +347,7 @@
},
showOTRError
:
function
(
msg
)
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
if
(
msg
===
'
Message cannot be sent at this time.
'
)
{
this
.
showHelpMessages
(
[
__
(
'
Your message could not be sent
'
)],
'
error
'
);
...
...
@@ -379,7 +379,7 @@
},
authOTR
:
function
(
ev
)
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
var
scheme
=
$
(
ev
.
target
).
data
().
scheme
;
var
result
,
question
,
answer
;
if
(
scheme
===
'
fingerprint
'
)
{
...
...
@@ -426,7 +426,7 @@
},
renderToolbar
:
function
(
toolbar
,
options
)
{
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
if
(
!
_converse
.
show_toolbar
)
{
return
;
}
...
...
@@ -462,7 +462,7 @@
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
converse
;
var
_converse
=
this
.
_
converse
;
// Translation aware constants
// ---------------------------
// We can only call the __ translation method *after* converse.js
...
...
src/converse-ping.js
View file @
1bae42b1
...
...
@@ -26,7 +26,7 @@
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
converse
;
var
_converse
=
this
.
_
converse
;
this
.
updateSettings
({
ping_interval
:
180
//in seconds
...
...
src/converse-register.js
View file @
1bae42b1
...
...
@@ -75,7 +75,7 @@
* login panel.
*/
this
.
__super__
.
renderLoginPanel
.
apply
(
this
,
arguments
);
var
_converse
=
this
.
__super__
.
converse
;
var
_converse
=
this
.
__super__
.
_
converse
;
if
(
_converse
.
allow_registration
)
{
this
.
registerpanel
=
new
_converse
.
RegisterPanel
({
'
$parent
'
:
this
.
$el
.
find
(
'
.controlbox-panes
'
),
...
...
@@ -92,7 +92,7 @@
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
*/
var
_converse
=
this
.
converse
;
var
_converse
=
this
.
_
converse
;
this
.
updateSettings
({
allow_registration
:
true
,
...
...
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