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
Yoji Takeuchi
erp5
Commits
d98b99d2
Commit
d98b99d2
authored
8 years ago
by
Vincent Bechu
Committed by
Cédric Le Ninivin
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: replace reload by renderApplication
parent
dea88e1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
48 deletions
+52
-48
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.js
...e_module/gadget_officejs_page_jio_erp5_configurator_js.js
+45
-43
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
..._module/gadget_officejs_page_jio_erp5_configurator_js.xml
+7
-5
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.js
View file @
d98b99d2
...
@@ -8,21 +8,10 @@
...
@@ -8,21 +8,10 @@
var
erp5_url
=
gadget
.
props
.
element
.
querySelector
(
"
input[name='erp5_url']
"
).
value
;
var
erp5_url
=
gadget
.
props
.
element
.
querySelector
(
"
input[name='erp5_url']
"
).
value
;
return
gadget
.
getSetting
(
"
portal_type
"
)
return
gadget
.
getSetting
(
"
portal_type
"
)
.
push
(
function
(
portal_type
)
{
.
push
(
function
(
portal_type
)
{
var
old_date
=
new
Date
(),
return
gadget
.
setSetting
(
configuration
=
{};
'
jio_storage_description
'
,
// We are looking for documents modified in the past 3 month
{
old_date
=
new
Date
(
old_date
.
getFullYear
(),
old_date
.
getMonth
(),
old_date
.
getDate
()
-
15
);
configuration
=
{
type
:
"
replicate
"
,
type
:
"
replicate
"
,
// XXX This drop the signature lists...
query
:
{
query
:
'
portal_type:"
'
+
portal_type
// XX Synchonizing the whole module is too much, here is a way to start quietly
// Supsended until modification_date is handled for synchronization
+
'
" AND modification_date:>="
'
+
old_date
.
toISOString
()
+
'
"
'
,
limit
:
[
0
,
1234567890
]
},
use_remote_post
:
true
,
use_remote_post
:
true
,
conflict_handling
:
1
,
conflict_handling
:
1
,
check_local_modification
:
true
,
check_local_modification
:
true
,
...
@@ -31,6 +20,10 @@
...
@@ -31,6 +20,10 @@
check_remote_modification
:
true
,
check_remote_modification
:
true
,
check_remote_creation
:
true
,
check_remote_creation
:
true
,
check_remote_deletion
:
true
,
check_remote_deletion
:
true
,
query
:
{
query
:
'
portal_type:"
'
+
portal_type
+
'
"
'
},
attachment_list
:
[
"
data
"
],
local_sub_storage
:
{
local_sub_storage
:
{
type
:
"
query
"
,
type
:
"
query
"
,
sub_storage
:
{
sub_storage
:
{
...
@@ -42,14 +35,26 @@
...
@@ -42,14 +35,26 @@
}
}
},
},
remote_sub_storage
:
{
remote_sub_storage
:
{
type
:
"
mapping
"
,
attachment_mapping_dict
:
{
"
data
"
:
{
"
get
"
:
{
"
uri_template
"
:
(
new
URI
(
"
hateoas
"
))
.
absoluteTo
(
erp5_url
)
.
toString
()
+
"
/{+id}?format=
"
}
}
},
sub_storage
:
{
type
:
"
erp5
"
,
type
:
"
erp5
"
,
url
:
(
new
URI
(
"
hateoas
"
))
url
:
(
new
URI
(
"
hateoas
"
))
.
absoluteTo
(
erp5_url
)
.
absoluteTo
(
erp5_url
)
.
toString
(),
.
toString
(),
default_view_reference
:
"
jio_view
"
default_view_reference
:
"
jio_view
"
}
}
};
}
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
);
}
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
ERP5
"
);
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
ERP5
"
);
...
@@ -58,10 +63,7 @@
...
@@ -58,10 +63,7 @@
return
gadget
.
setGlobalSetting
(
'
erp5_url
'
,
erp5_url
);
return
gadget
.
setGlobalSetting
(
'
erp5_url
'
,
erp5_url
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
reload
();
return
gadget
.
renderApplication
({
args
:{
page
:
'
sync
'
,
auto_repair
:
'
true
'
}});
})
.
push
(
function
()
{
return
gadget
.
redirect
({
page
:
'
sync
'
,
auto_repair
:
'
true
'
});
});
});
}
}
...
@@ -78,9 +80,9 @@
...
@@ -78,9 +80,9 @@
})
})
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
reload
"
,
"
reload
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
renderApplication
"
,
"
renderApplication
"
)
.
declareMethod
(
"
getGlobalSetting
"
,
function
(
key
)
{
.
declareMethod
(
"
getGlobalSetting
"
,
function
(
key
)
{
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
getDeclaredGadget
(
"
global_setting_gadget
"
)
return
gadget
.
getDeclaredGadget
(
"
global_setting_gadget
"
)
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
View file @
d98b99d2
...
@@ -138,11 +138,13 @@
...
@@ -138,11 +138,13 @@
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS jIO ERP5 Configurator Page JS
</string>
</value>
<value>
<string>
OfficeJS jIO ERP5 Configurator Page JS
</string>
</value>
</item>
</item>
<item>
<key>
<string>
url_string
</string>
</key>
<value>
<string>
gadget_officejs_page_jio_erp5_configurator.js
</string>
</value>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
<value>
<value>
<string>
001
</string>
</value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<key>
<string>
workflow_history
</string>
</key>
...
@@ -269,7 +271,7 @@
...
@@ -269,7 +271,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.38591.30253.42973
</string>
</value>
<value>
<string>
95
6.60.28713.5102
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -287,7 +289,7 @@
...
@@ -287,7 +289,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
76438691.35
</float>
<float>
14
81903967.67
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
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