Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
nexedi
ecommerce-ui
Commits
1fd0fc77
Commit
1fd0fc77
authored
Apr 25, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: fixed gadget update and cleaning on firstpage with deeplinks
parent
cd6bbf0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
js/erp5_loader.js
js/erp5_loader.js
+12
-3
No files found.
js/erp5_loader.js
View file @
1fd0fc77
...
...
@@ -3040,10 +3040,18 @@
"
update_custom
"
:
function
(
obj
)
{
storage
.
write
(
obj
)
.
then
(
function
(
response
)
{
var
i
,
len
,
dyno_list
,
dyno
,
promise_list
;
var
i
,
len
,
dyno_list
,
dyno
,
promise_list
,
dump
;
// need to reload both dynos...
// clear active page, because we need to reload
dump
=
document
.
querySelector
(
"
div.ui-content
"
);
util
.
deleteChildren
(
dump
);
// refresh dynos that are left!
dyno_list
=
document
.
querySelectorAll
(
"
div.dyno
"
);
// set first page to reload and clean it up!
delete
app
.
deeplink_flag
;
promise_list
=
[];
for
(
i
=
0
,
len
=
dyno_list
.
length
;
i
<
len
;
i
+=
1
)
{
dyno
=
dyno_list
[
i
];
...
...
@@ -3067,9 +3075,10 @@
)
.
fail
(
app
.
util
.
error
);
}
RSVP
.
all
(
promise_list
)
return
RSVP
.
all
(
promise_list
)
.
then
(
function
(
response_list
)
{
app
.
util
.
loader
(
""
,
"
status_dict.saved
"
,
"
check
"
);
//app.navigate(obj, response);
})
.
fail
(
app
.
util
.
error
);
})
...
...
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