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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
c824b5ab
Commit
c824b5ab
authored
Jan 10, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_xhtml_style/erp5_web_renderjs_ui: renderjs 0.28.0
parent
b4bde852
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
16 deletions
+42
-16
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_renderjs_js.js
...js_ui/PathTemplateItem/web_page_module/rjs_renderjs_js.js
+20
-7
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_renderjs_js.xml
...s_ui/PathTemplateItem/web_page_module/rjs_renderjs_js.xml
+2
-2
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/renderjs.js.js
...TemplateItem/portal_skins/erp5_xhtml_style/renderjs.js.js
+20
-7
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_renderjs_js.js
View file @
c824b5ab
...
@@ -992,19 +992,32 @@ if (typeof document.contains !== 'function') {
...
@@ -992,19 +992,32 @@ if (typeof document.contains !== 'function') {
this
.
_latest_promise
=
null
;
this
.
_latest_promise
=
null
;
};
};
function
doNothing
()
{
return
;
}
Mutex
.
prototype
=
{
Mutex
.
prototype
=
{
constructor
:
Mutex
,
constructor
:
Mutex
,
lockAndRun
:
function
lockMutexAndRun
(
callback
)
{
lockAndRun
:
function
lockMutexAndRun
(
callback
)
{
var
previous_promise
=
this
.
_latest_promise
;
var
previous_promise
=
this
.
_latest_promise
,
returned_promise
;
if
(
previous_promise
===
null
)
{
if
(
previous_promise
===
null
)
{
this
.
_latest_promise
=
RSVP
.
resolve
(
callback
());
this
.
_latest_promise
=
RSVP
.
resolve
(
callback
());
}
else
{
return
this
.
_latest_promise
;
this
.
_latest_promise
=
this
.
_latest_promise
}
returned_promise
=
previous_promise
.
always
(
function
()
{
.
always
(
function
()
{
return
callback
();
return
callback
();
});
});
}
// Do not return latest promise, to not allow external caller
return
this
.
_latest_promise
;
// to explicitely cancel it,
// ie, ensure next promise is triggered only when ALL previous
// promised are finished (not only the single previous one)
this
.
_latest_promise
=
RSVP
.
all
([
previous_promise
.
always
(
doNothing
),
returned_promise
.
always
(
doNothing
)
]);
return
returned_promise
;
}
}
};
};
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_renderjs_js.xml
View file @
c824b5ab
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
998.17699.36537.24439
</string>
</value>
<value>
<string>
1004.26548.30757.41045
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
68780748.06
</float>
<float>
16
73362285.2
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/renderjs.js.js
View file @
c824b5ab
...
@@ -992,19 +992,32 @@ if (typeof document.contains !== 'function') {
...
@@ -992,19 +992,32 @@ if (typeof document.contains !== 'function') {
this
.
_latest_promise
=
null
;
this
.
_latest_promise
=
null
;
};
};
function
doNothing
()
{
return
;
}
Mutex
.
prototype
=
{
Mutex
.
prototype
=
{
constructor
:
Mutex
,
constructor
:
Mutex
,
lockAndRun
:
function
lockMutexAndRun
(
callback
)
{
lockAndRun
:
function
lockMutexAndRun
(
callback
)
{
var
previous_promise
=
this
.
_latest_promise
;
var
previous_promise
=
this
.
_latest_promise
,
returned_promise
;
if
(
previous_promise
===
null
)
{
if
(
previous_promise
===
null
)
{
this
.
_latest_promise
=
RSVP
.
resolve
(
callback
());
this
.
_latest_promise
=
RSVP
.
resolve
(
callback
());
}
else
{
return
this
.
_latest_promise
;
this
.
_latest_promise
=
this
.
_latest_promise
}
returned_promise
=
previous_promise
.
always
(
function
()
{
.
always
(
function
()
{
return
callback
();
return
callback
();
});
});
}
// Do not return latest promise, to not allow external caller
return
this
.
_latest_promise
;
// to explicitely cancel it,
// ie, ensure next promise is triggered only when ALL previous
// promised are finished (not only the single previous one)
this
.
_latest_promise
=
RSVP
.
all
([
previous_promise
.
always
(
doNothing
),
returned_promise
.
always
(
doNothing
)
]);
return
returned_promise
;
}
}
};
};
...
...
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