Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
Boris Kocherov
web-apps
Commits
7cb1baf5
Commit
7cb1baf5
authored
Mar 22, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete unused events and methods.
parent
f9534c18
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1 addition
and
49 deletions
+1
-49
apps/api/documents/api.js
apps/api/documents/api.js
+1
-5
apps/api/documents/index.html
apps/api/documents/index.html
+0
-7
apps/common/Gateway.js
apps/common/Gateway.js
+0
-7
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+0
-5
apps/documenteditor/mobile/app/controller/Main.js
apps/documenteditor/mobile/app/controller/Main.js
+0
-5
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+0
-5
apps/presentationeditor/mobile/app/controller/Main.js
apps/presentationeditor/mobile/app/controller/Main.js
+0
-5
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+0
-5
apps/spreadsheeteditor/mobile/app/controller/Main.js
apps/spreadsheeteditor/mobile/app/controller/Main.js
+0
-5
No files found.
apps/api/documents/api.js
View file @
7cb1baf5
...
...
@@ -130,8 +130,7 @@
events: {
'onReady': <document ready callback>,
'onBack': <back to folder callback>,
'onDocumentStateChange': <document state changed callback>,
'onSave': <save request callback>
'onDocumentStateChange': <document state changed callback>
}
}
...
...
@@ -279,9 +278,6 @@
if
(
handler
)
{
res
=
handler
.
call
(
_self
,
{
target
:
_self
,
data
:
msg
.
data
});
if
(
msg
.
event
===
'
onSave
'
&&
res
!==
false
)
{
_processSaveResult
(
true
);
}
}
}
}
...
...
apps/api/documents/index.html
View file @
7cb1baf5
...
...
@@ -65,7 +65,6 @@
'
onRequestEmailAddresses
'
:
onRequestEmailAddresses
,
'
onRequestStartMailMerge
'
:
onRequestStartMailMerge
,
'
onRequestHistoryClose
'
:
onRequestHistoryClose
,
'
onSave
'
:
onDocumentSave
,
'
onError
'
:
onError
}
});
...
...
@@ -195,12 +194,6 @@
docEditor
.
applyEditRights
(
true
,
"
Someone is editing this document right now. Please try again later.
"
);
}
function
onDocumentSave
(
event
)
{
var
url
=
event
.
data
;
// if you want to async save process return false
// and call api.processSaveResult when ready
}
function
onError
(
event
)
{
// critical error happened
// examine event.data.errorCode and event.data.errorDescription for details
...
...
apps/common/Gateway.js
View file @
7cb1baf5
...
...
@@ -142,13 +142,6 @@ if (Common === undefined) {
_postMessage
({
event
:
'
onReady
'
});
},
save
:
function
(
url
)
{
_postMessage
({
event
:
'
onSave
'
,
data
:
url
});
},
requestEditRights
:
function
()
{
_postMessage
({
event
:
'
onRequestEditRights
'
});
},
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
7cb1baf5
...
...
@@ -1106,7 +1106,6 @@ define([
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentModifiedChanged
'
,
_
.
bind
(
me
.
onDocumentModifiedChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentCanSaveChanged
'
,
_
.
bind
(
me
.
onDocumentCanSaveChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onSaveUrl
'
,
_
.
bind
(
me
.
onSaveUrl
,
me
));
/** coauthoring begin **/
me
.
api
.
asc_registerCallback
(
'
asc_onCollaborativeChanges
'
,
_
.
bind
(
me
.
onCollaborativeChanges
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_OnTryUndoInFastCollaborative
'
,
_
.
bind
(
me
.
onTryUndoInFastCollaborative
,
me
));
...
...
@@ -1467,10 +1466,6 @@ define([
$
(
'
#loading-mask
'
).
hide
().
remove
();
},
onSaveUrl
:
function
(
url
)
{
Common
.
Gateway
.
save
(
url
);
},
onDownloadUrl
:
function
(
url
)
{
if
(
this
.
_state
.
isFromGatewayDownloadAs
)
Common
.
Gateway
.
downloadAs
(
url
);
...
...
apps/documenteditor/mobile/app/controller/Main.js
View file @
7cb1baf5
...
...
@@ -677,7 +677,6 @@ define([
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentModifiedChanged
'
,
_
.
bind
(
me
.
onDocumentModifiedChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentCanSaveChanged
'
,
_
.
bind
(
me
.
onDocumentCanSaveChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onSaveUrl
'
,
_
.
bind
(
me
.
onSaveUrl
,
me
));
/** coauthoring begin **/
me
.
api
.
asc_registerCallback
(
'
asc_onCollaborativeChanges
'
,
_
.
bind
(
me
.
onCollaborativeChanges
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_OnTryUndoInFastCollaborative
'
,
_
.
bind
(
me
.
onTryUndoInFastCollaborative
,
me
));
...
...
@@ -929,10 +928,6 @@ define([
$
(
'
#loading-mask
'
).
hide
().
remove
();
},
onSaveUrl
:
function
(
url
)
{
Common
.
Gateway
.
save
(
url
);
},
onDownloadUrl
:
function
(
url
)
{
if
(
this
.
_state
.
isFromGatewayDownloadAs
)
{
Common
.
Gateway
.
downloadAs
(
url
);
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
7cb1baf5
...
...
@@ -866,7 +866,6 @@ define([
me
.
api
.
asc_registerCallback
(
'
asc_onChangeObjectLock
'
,
_
.
bind
(
me
.
_onChangeObjectLock
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentModifiedChanged
'
,
_
.
bind
(
me
.
onDocumentModifiedChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentCanSaveChanged
'
,
_
.
bind
(
me
.
onDocumentCanSaveChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onSaveUrl
'
,
_
.
bind
(
me
.
onSaveUrl
,
me
));
/** coauthoring begin **/
me
.
api
.
asc_registerCallback
(
'
asc_onCollaborativeChanges
'
,
_
.
bind
(
me
.
onCollaborativeChanges
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_OnTryUndoInFastCollaborative
'
,
_
.
bind
(
me
.
onTryUndoInFastCollaborative
,
me
));
...
...
@@ -1217,10 +1216,6 @@ define([
$
(
'
#loading-mask
'
).
hide
().
remove
();
},
onSaveUrl
:
function
(
url
)
{
Common
.
Gateway
.
save
(
url
);
},
onDownloadUrl
:
function
(
url
)
{
Common
.
Gateway
.
downloadAs
(
url
);
},
...
...
apps/presentationeditor/mobile/app/controller/Main.js
View file @
7cb1baf5
...
...
@@ -637,7 +637,6 @@ define([
me
.
api
.
asc_registerCallback
(
'
asc_onChangeObjectLock
'
,
_
.
bind
(
me
.
_onChangeObjectLock
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentModifiedChanged
'
,
_
.
bind
(
me
.
onDocumentModifiedChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentCanSaveChanged
'
,
_
.
bind
(
me
.
onDocumentCanSaveChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onSaveUrl
'
,
_
.
bind
(
me
.
onSaveUrl
,
me
));
/** coauthoring begin **/
me
.
api
.
asc_registerCallback
(
'
asc_onCollaborativeChanges
'
,
_
.
bind
(
me
.
onCollaborativeChanges
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_OnTryUndoInFastCollaborative
'
,
_
.
bind
(
me
.
onTryUndoInFastCollaborative
,
me
));
...
...
@@ -889,10 +888,6 @@ define([
$
(
'
#loading-mask
'
).
hide
().
remove
();
},
onSaveUrl
:
function
(
url
)
{
Common
.
Gateway
.
save
(
url
);
},
onDownloadUrl
:
function
(
url
)
{
if
(
this
.
_state
.
isFromGatewayDownloadAs
)
{
Common
.
Gateway
.
downloadAs
(
url
);
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
7cb1baf5
...
...
@@ -649,7 +649,6 @@ define([
rightmenuController
.
createDelayedElements
();
me
.
api
.
asc_registerCallback
(
'
asc_onSaveUrl
'
,
_
.
bind
(
me
.
onSaveUrl
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentModifiedChanged
'
,
_
.
bind
(
me
.
onDocumentModifiedChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentCanSaveChanged
'
,
_
.
bind
(
me
.
onDocumentCanSaveChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_OnTryUndoInFastCollaborative
'
,
_
.
bind
(
me
.
onTryUndoInFastCollaborative
,
me
));
...
...
@@ -1360,10 +1359,6 @@ define([
$
(
'
#loading-mask
'
).
hide
().
remove
();
},
onSaveUrl
:
function
(
url
)
{
Common
.
Gateway
.
save
(
url
);
},
onDownloadUrl
:
function
(
url
)
{
Common
.
Gateway
.
downloadAs
(
url
);
},
...
...
apps/spreadsheeteditor/mobile/app/controller/Main.js
View file @
7cb1baf5
...
...
@@ -653,7 +653,6 @@ define([
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentModifiedChanged
'
,
_
.
bind
(
me
.
onDocumentModifiedChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onDocumentCanSaveChanged
'
,
_
.
bind
(
me
.
onDocumentCanSaveChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onSaveUrl
'
,
_
.
bind
(
me
.
onSaveUrl
,
me
));
/** coauthoring begin **/
me
.
api
.
asc_registerCallback
(
'
asc_onCollaborativeChanges
'
,
_
.
bind
(
me
.
onCollaborativeChanges
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_OnTryUndoInFastCollaborative
'
,
_
.
bind
(
me
.
onTryUndoInFastCollaborative
,
me
));
...
...
@@ -1023,10 +1022,6 @@ define([
$
(
'
#loading-mask
'
).
hide
().
remove
();
},
onSaveUrl
:
function
(
url
)
{
Common
.
Gateway
.
save
(
url
);
},
onDownloadUrl
:
function
(
url
)
{
if
(
this
.
_state
.
isFromGatewayDownloadAs
)
{
Common
.
Gateway
.
downloadAs
(
url
);
...
...
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