Commit 1fd0fc77 authored by Sven Franck's avatar Sven Franck

app: fixed gadget update and cleaning on firstpage with deeplinks

parent cd6bbf0a
......@@ -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);
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment