Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
preetwinder
erp5
Commits
9d47a8ce
Commit
9d47a8ce
authored
Aug 18, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_ooffice] save promise resolve when no modification
parent
0c335868
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
10 deletions
+24
-10
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_documenteditor_main_app_controller_Main_js.js
...office_apps_documenteditor_main_app_controller_Main_js.js
+4
-0
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_documenteditor_main_app_controller_Main_js.xml
...ffice_apps_documenteditor_main_app_controller_Main_js.xml
+2
-2
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_presentationeditor_main_app_controller_Main_js.js
...ce_apps_presentationeditor_main_app_controller_Main_js.js
+4
-0
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_presentationeditor_main_app_controller_Main_js.xml
...e_apps_presentationeditor_main_app_controller_Main_js.xml
+2
-2
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_spreadsheeteditor_main_app_controller_Main_js.js
...ice_apps_spreadsheeteditor_main_app_controller_Main_js.js
+4
-0
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_spreadsheeteditor_main_app_controller_Main_js.xml
...ce_apps_spreadsheeteditor_main_app_controller_Main_js.xml
+2
-2
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_gadget_ooffice_js.js
...TemplateItem/web_page_module/ooffice_gadget_ooffice_js.js
+4
-2
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_gadget_ooffice_js.xml
...emplateItem/web_page_module/ooffice_gadget_ooffice_js.xml
+2
-2
No files found.
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_documenteditor_main_app_controller_Main_js.js
View file @
9d47a8ce
...
...
@@ -885,9 +885,13 @@ define([
Common
.
Gateway
.
on
(
'
processmouse
'
,
_
.
bind
(
me
.
onProcessMouse
,
me
));
Common
.
Gateway
.
on
(
'
refreshhistory
'
,
_
.
bind
(
me
.
onRefreshHistory
,
me
));
Common
.
Gateway
.
on
(
'
save
'
,
function
()
{
var
g
=
Common
.
Gateway
;
if
(
me
.
api
.
isDocumentModified
())
{
me
.
api
.
asc_Save
();
}
if
(
g
.
props
.
save_defer
)
{
g
.
props
.
save_defer
.
resolve
(
undefined
);
}
});
Common
.
Gateway
.
on
(
'
downloadas
'
,
_
.
bind
(
me
.
onDownloadAs
,
me
));
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_documenteditor_main_app_controller_Main_js.xml
View file @
9d47a8ce
...
...
@@ -220,7 +220,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
56.37205.45053.30037
</string>
</value>
<value>
<string>
9
61.31926.50683.29252
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -238,7 +238,7 @@
</tuple>
<state>
<tuple>
<float>
1
486024275.69
</float>
<float>
1
503045227.0
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_presentationeditor_main_app_controller_Main_js.js
View file @
9d47a8ce
...
...
@@ -668,9 +668,13 @@ define([
Common
.
Gateway
.
on
(
'
processrightschange
'
,
_
.
bind
(
me
.
onProcessRightsChange
,
me
));
Common
.
Gateway
.
on
(
'
processmouse
'
,
_
.
bind
(
me
.
onProcessMouse
,
me
));
Common
.
Gateway
.
on
(
'
save
'
,
function
()
{
var
g
=
Common
.
Gateway
;
if
(
me
.
api
.
isDocumentModified
())
{
me
.
api
.
asc_Save
();
}
if
(
g
.
props
.
save_defer
)
{
g
.
props
.
save_defer
.
resolve
(
undefined
);
}
});
Common
.
Gateway
.
on
(
'
downloadas
'
,
_
.
bind
(
me
.
onDownloadAs
,
me
));
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_presentationeditor_main_app_controller_Main_js.xml
View file @
9d47a8ce
...
...
@@ -220,7 +220,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
56.37205.45053.30037
</string>
</value>
<value>
<string>
9
61.31925.26684.9898
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -238,7 +238,7 @@
</tuple>
<state>
<tuple>
<float>
1
486024308.4
</float>
<float>
1
503045344.71
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_spreadsheeteditor_main_app_controller_Main_js.js
View file @
9d47a8ce
...
...
@@ -676,9 +676,13 @@ define([
Common
.
Gateway
.
on
(
'
processrightschange
'
,
_
.
bind
(
me
.
onProcessRightsChange
,
me
));
Common
.
Gateway
.
on
(
'
processmouse
'
,
_
.
bind
(
me
.
onProcessMouse
,
me
));
Common
.
Gateway
.
on
(
'
save
'
,
function
()
{
var
g
=
Common
.
Gateway
;
if
(
me
.
api
.
asc_isDocumentModified
())
{
me
.
api
.
asc_Save
();
}
if
(
g
.
props
.
save_defer
)
{
g
.
props
.
save_defer
.
resolve
(
undefined
);
}
});
Common
.
Gateway
.
on
(
'
downloadas
'
,
_
.
bind
(
me
.
onDownloadAs
,
me
));
Common
.
Gateway
.
sendInfo
({
mode
:
me
.
appOptions
.
isEdit
?
'
edit
'
:
'
view
'
});
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_apps_spreadsheeteditor_main_app_controller_Main_js.xml
View file @
9d47a8ce
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
58.18339.3430.47257
</string>
</value>
<value>
<string>
9
61.31905.4301.26982
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
1
490605671.4
</float>
<float>
1
503044440.28
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_gadget_ooffice_js.js
View file @
9d47a8ce
...
...
@@ -548,8 +548,10 @@ if (Common === undefined) {
return
save_defer
.
promise
;
})
.
push
(
function
(
data
)
{
if
(
data
)
{
var
body
=
data
[
g
.
props
.
key
];
return
zip
.
putAttachment
(
'
/
'
,
'
body.txt
'
,
body
);
}
})
.
push
(
function
()
{
return
zip
.
getAttachment
(
'
/
'
,
'
/
'
);
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/ooffice_gadget_ooffice_js.xml
View file @
9d47a8ce
...
...
@@ -233,7 +233,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.
660.18881.18705
</string>
</value>
<value>
<string>
961.
10686.10882.5973
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -251,7 +251,7 @@
</tuple>
<state>
<tuple>
<float>
150
1231192.91
</float>
<float>
150
3043242.86
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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