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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Gambier
erp5
Commits
97289223
Commit
97289223
authored
Oct 06, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[OfficeJS] Stop use memory to save change in document
Prevent issue when document is edited in multiple tab.
parent
1f475772
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
58 additions
and
122 deletions
+58
-122
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.js
...eItem/web_page_module/gadget_officejs_bookmark_view_js.js
+2
-12
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.xml
...Item/web_page_module/gadget_officejs_bookmark_view_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_controller_page_controller_js.js
...e_module/gadget_officejs_controller_page_controller_js.js
+14
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_controller_page_controller_js.xml
..._module/gadget_officejs_controller_page_controller_js.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_pdf_view_js.js
...teItem/web_page_module/gadget_officejs_jio_pdf_view_js.js
+3
-10
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_pdf_view_js.xml
...eItem/web_page_module/gadget_officejs_jio_pdf_view_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_illustration_view_js.js
...ge_module/gadget_officejs_jio_web_illustration_view_js.js
+2
-12
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_illustration_view_js.xml
...e_module/gadget_officejs_jio_web_illustration_view_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.js
...m/web_page_module/gadget_officejs_jio_web_page_view_js.js
+2
-12
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.xml
.../web_page_module/gadget_officejs_jio_web_page_view_js.xml
+2
-2
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.js
...m/web_page_module/gadget_image_editor_officejs_view_js.js
+3
-10
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.xml
.../web_page_module/gadget_image_editor_officejs_view_js.xml
+2
-2
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_web_table_view_js.js
...hTemplateItem/web_page_module/gadget_web_table_view_js.js
+2
-12
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_web_table_view_js.xml
...TemplateItem/web_page_module/gadget_web_table_view_js.xml
+2
-2
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_presentation_view_js.js
...eb_page_module/gadget_ooffice_jio_presentation_view_js.js
+3
-11
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_presentation_view_js.xml
...b_page_module/gadget_ooffice_jio_presentation_view_js.xml
+2
-2
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_spreadsheet_view_js.js
...web_page_module/gadget_ooffice_jio_spreadsheet_view_js.js
+3
-11
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_spreadsheet_view_js.xml
...eb_page_module/gadget_ooffice_jio_spreadsheet_view_js.xml
+2
-2
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_text_view_js.js
...teItem/web_page_module/gadget_ooffice_jio_text_view_js.js
+3
-11
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_text_view_js.xml
...eItem/web_page_module/gadget_ooffice_jio_text_view_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.js
View file @
97289223
...
...
@@ -15,7 +15,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
...
...
@@ -40,17 +40,7 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
var
doc
;
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
content
.
text_content
=
gadget
.
state
.
doc
.
text_content
;
}
else
{
doc
=
gadget
.
state
.
doc
;
doc
.
text_content
=
content
.
text_content
;
}
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.xml
View file @
97289223
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.37
006.38613.44356
</string>
</value>
<value>
<string>
962.37
366.56810.48998
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
150721
6731.96
</float>
<float>
150721
7051.45
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_controller_page_controller_js.js
View file @
97289223
...
...
@@ -9,6 +9,7 @@
// Acquired methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_put
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
/////////////////////////////////////////////////////////////////
...
...
@@ -17,6 +18,19 @@
.
allowPublicAcquisition
(
'
notifySubmit
'
,
function
()
{
return
this
.
triggerSubmit
();
})
.
allowPublicAcquisition
(
'
updateDocument
'
,
function
(
content
)
{
var
gadget
=
this
;
return
gadget
.
jio_get
(
gadget
.
state
.
jio_key
)
.
push
(
function
(
doc
)
{
var
property
;
for
(
property
in
content
)
{
if
(
content
.
hasOwnProperty
(
property
))
{
doc
[
property
]
=
content
[
property
];
}
}
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
});
})
.
declareMethod
(
'
triggerSubmit
'
,
function
()
{
return
this
.
getDeclaredGadget
(
'
fg
'
)
.
push
(
function
(
g
)
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_controller_page_controller_js.xml
View file @
97289223
...
...
@@ -213,7 +213,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -227,7 +227,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.578.57241.54135
</string>
</value>
<value>
<string>
96
2.38368.35236.14643
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -245,7 +245,7 @@
</tuple>
<state>
<tuple>
<float>
150
1502753.18
</float>
<float>
150
7276852.87
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_pdf_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
...
...
@@ -38,20 +38,13 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
}
else
{
doc
=
gadget
.
state
.
doc
;
if
(
gadget
.
state
.
editable
)
{
return
jIO
.
util
.
dataURItoBlob
(
content
)
.
push
(
function
(
blob
)
{
return
gadget
.
jio_putAttachment
(
gadget
.
state
.
doc
.
jio_key
,
"
data
"
,
blob
);
});
}
})
.
push
(
function
()
{
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_pdf_view_js.xml
View file @
97289223
...
...
@@ -233,7 +233,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.37
007.2490.4437
</string>
</value>
<value>
<string>
962.37
367.12390.34440
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -251,7 +251,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16751.29
</float>
<float>
15072
76424.45
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_illustration_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
...
...
@@ -36,17 +36,7 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
var
doc
;
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
content
.
text_content
=
gadget
.
state
.
doc
.
text_content
;
}
else
{
doc
=
gadget
.
state
.
doc
;
doc
.
text_content
=
content
.
text_content
;
}
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_illustration_view_js.xml
View file @
97289223
...
...
@@ -273,7 +273,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.3
7007.62049.31914
</string>
</value>
<value>
<string>
962.3
8366.1240.39082
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -291,7 +291,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16794.53
</float>
<float>
15072
76696.58
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
...
...
@@ -36,17 +36,7 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
var
doc
;
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
content
.
text_content
=
gadget
.
state
.
doc
.
text_content
;
}
else
{
doc
=
gadget
.
state
.
doc
;
doc
.
text_content
=
content
.
text_content
;
}
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.xml
View file @
97289223
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.37
008.9624.51234
</string>
</value>
<value>
<string>
962.37
368.2625.44083
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16802.33
</float>
<float>
15072
76723.18
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
...
...
@@ -38,12 +38,7 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
}
else
{
doc
=
gadget
.
state
.
doc
;
if
(
gadget
.
state
.
editable
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
dataURItoBlob
(
content
.
text_content
);
...
...
@@ -52,9 +47,7 @@
return
gadget
.
jio_putAttachment
(
gadget
.
state
.
jio_key
,
"
data
"
,
blob
);
});
}
})
.
push
(
function
()
{
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_image_editor_officejs_view_js.xml
View file @
97289223
...
...
@@ -235,7 +235,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.37
006.51899.60586
</string>
</value>
<value>
<string>
962.37
374.62560.29798
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -253,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16742.11
</float>
<float>
15072
76442.57
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_web_table_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
...
...
@@ -36,17 +36,7 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
var
doc
;
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
content
.
text_content
=
gadget
.
state
.
doc
.
text_content
;
}
else
{
doc
=
gadget
.
state
.
doc
;
doc
.
text_content
=
content
.
text_content
;
}
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs_jquery_app/PathTemplateItem/web_page_module/gadget_web_table_view_js.xml
View file @
97289223
...
...
@@ -227,7 +227,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.37
008.22150.56354
</string>
</value>
<value>
<string>
962.37
368.12382.8550
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -245,7 +245,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16811.32
</float>
<float>
15072
76746.27
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_presentation_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
...
...
@@ -39,22 +39,14 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
}
else
{
doc
=
gadget
.
state
.
doc
;
doc
.
content_type
=
"
application/x-asc-presentation
"
;
if
(
gadget
.
state
.
editable
)
{
return
gadget
.
jio_putAttachment
(
gadget
.
state
.
jio_key
,
"
data
"
,
jIO
.
util
.
dataURItoBlob
(
content
.
text_content
)
);
}
})
.
push
(
function
()
{
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_presentation_view_js.xml
View file @
97289223
...
...
@@ -233,7 +233,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.3
7007.20027.3549
8
</string>
</value>
<value>
<string>
962.3
8363.43436.6365
8
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -251,7 +251,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16762.23
</float>
<float>
15072
76582.46
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_spreadsheet_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
...
...
@@ -39,22 +39,14 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
}
else
{
doc
=
gadget
.
state
.
doc
;
doc
.
content_type
=
"
application/x-asc-spreadsheet
"
;
if
(
gadget
.
state
.
editable
)
{
return
gadget
.
jio_putAttachment
(
gadget
.
state
.
jio_key
,
"
data
"
,
jIO
.
util
.
dataURItoBlob
(
content
.
text_content
)
);
}
})
.
push
(
function
()
{
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_spreadsheet_view_js.xml
View file @
97289223
...
...
@@ -233,7 +233,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.37
007.35052.50005
</string>
</value>
<value>
<string>
962.37
367.33580.22391
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -251,7 +251,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16770.69
</float>
<float>
15072
76608.1
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_text_view_js.js
View file @
97289223
...
...
@@ -10,7 +10,7 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_pu
t
"
)
.
declareAcquiredMethod
(
"
updateDocument
"
,
"
updateDocumen
t
"
)
.
declareAcquiredMethod
(
"
jio_getAttachment
"
,
"
jio_getAttachment
"
)
.
declareAcquiredMethod
(
"
jio_putAttachment
"
,
"
jio_putAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
...
...
@@ -39,22 +39,14 @@
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
if
(
!
gadget
.
state
.
editable
)
{
doc
=
content
;
content
.
portal_type
=
gadget
.
state
.
doc
.
portal_type
;
content
.
parent_relative_url
=
gadget
.
state
.
doc
.
parent_relative_url
;
}
else
{
doc
=
gadget
.
state
.
doc
;
doc
.
content_type
=
"
application/x-asc-text
"
;
if
(
gadget
.
state
.
editable
)
{
return
gadget
.
jio_putAttachment
(
gadget
.
state
.
jio_key
,
"
data
"
,
jIO
.
util
.
dataURItoBlob
(
content
.
text_content
)
);
}
})
.
push
(
function
()
{
return
gadget
.
jio_put
(
gadget
.
state
.
jio_key
,
doc
);
return
gadget
.
updateDocument
(
content
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
...
...
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_jio_text_view_js.xml
View file @
97289223
...
...
@@ -233,7 +233,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
962.37
007.50396.49885
</string>
</value>
<value>
<string>
962.37
367.43380.13943
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -251,7 +251,7 @@
</tuple>
<state>
<tuple>
<float>
15072
16779.66
</float>
<float>
15072
76655.94
</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