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
Nikola Balog
erp5
Commits
7a2c7c2c
Commit
7a2c7c2c
authored
Jan 18, 2017
by
Cédric Le Ninivin
Committed by
Xiaowu Zhang
Jan 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: Fix Panel close
parent
226cedcb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
30 deletions
+40
-30
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.js
...m/web_page_module/gadget_officejs_application_panel_js.js
+36
-27
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.xml
.../web_page_module/gadget_officejs_application_panel_js.xml
+4
-3
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.js
View file @
7a2c7c2c
...
...
@@ -29,6 +29,7 @@
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
g
.
props
.
jelement
=
$
(
element
.
querySelector
(
"
div
"
));
g
.
props
.
render_deferred
=
RSVP
.
defer
();
});
})
...
...
@@ -83,15 +84,23 @@
value
=
element_list
[
i
].
textContent
;
push
(
key
,
value
);
}
return
queue
;
return
queue
.
push
(
function
()
{
return
gadget
.
props
.
render_deferred
.
resolve
();
});
})
/////////////////////////////////////////////////////////////////
// declared services
/////////////////////////////////////////////////////////////////
.
declareService
(
function
()
{
var
panel_gadget
,
form_list
,
var
panel_gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
panel_gadget
.
props
.
render_deferred
.
promise
;
})
.
push
(
function
()
{
var
form_list
,
event_list
,
i
,
len
;
...
...
@@ -101,7 +110,6 @@
panel_gadget
.
toggle
();
}
panel_gadget
=
this
;
form_list
=
panel_gadget
.
props
.
element
.
querySelectorAll
(
'
form
'
);
event_list
=
[];
...
...
@@ -120,6 +128,7 @@
return
RSVP
.
all
(
event_list
);
});
});
});
}(
window
,
rJS
,
Handlebars
,
jQuery
,
RSVP
,
loopEventListener
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.xml
View file @
7a2c7c2c
...
...
@@ -68,6 +68,7 @@
<value>
<tuple>
<string>
contributor/person_module/1
</string>
<string>
contributor/person_module/2
</string>
</tuple>
</value>
</item>
...
...
@@ -251,7 +252,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
supercedriclen
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -265,7 +266,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.32960.61602.49578
</string>
</value>
<value>
<string>
95
6.47493.18553.34594
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -283,7 +284,7 @@
</tuple>
<state>
<tuple>
<float>
14
76099905.42
</float>
<float>
14
84749934.29
</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