fix: navigating to the config pages allways loads, not only on the first attempt.
This commit is contained in:
parent
2f07efd215
commit
eef2f32e14
3 changed files with 61 additions and 60 deletions
|
@ -21,10 +21,12 @@ function initial_load() {
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
document.querySelector('#LispPlaygroundConfigPage')
|
export default function (view, params) {
|
||||||
.addEventListener('viewshow', function() {
|
view.addEventListener('viewshow', function() {
|
||||||
initial_load();
|
initial_load(null);
|
||||||
});
|
});
|
||||||
|
view.addEventListener('viewhide', function (_e) {});
|
||||||
|
view.addEventListener('viewdestroy', function (_e) {});
|
||||||
|
|
||||||
document.querySelector('#LispPlaygroundConfigPage')
|
document.querySelector('#LispPlaygroundConfigPage')
|
||||||
.addEventListener('pageshow', function() {
|
.addEventListener('pageshow', function() {
|
||||||
|
@ -41,3 +43,4 @@ document.querySelector('#LispPlaygroundConfigForm')
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -88,15 +88,13 @@ function initial_load(selectedId) {
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
document.querySelector('#SmartCollectionConfigPage')
|
|
||||||
.addEventListener('viewshow', function() {
|
|
||||||
initial_load(null);
|
|
||||||
});
|
|
||||||
|
|
||||||
document.querySelector('#SmartCollectionConfigPage')
|
export default function (view, params) {
|
||||||
.addEventListener('pageshow', function() {
|
view.addEventListener('viewshow', function() {
|
||||||
initial_load(null);
|
initial_load(null);
|
||||||
});
|
});
|
||||||
|
view.addEventListener('viewhide', function (_e) {});
|
||||||
|
view.addEventListener('viewdestroy', function (_e) {});
|
||||||
|
|
||||||
document.querySelector('#SmartcollectionSelection')
|
document.querySelector('#SmartcollectionSelection')
|
||||||
.addEventListener('change', function() {
|
.addEventListener('change', function() {
|
||||||
|
@ -114,3 +112,4 @@ document.querySelector('#SmartCollectionConfigForm')
|
||||||
});
|
});
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -116,14 +116,12 @@ function initial_load(selectedId) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
document.querySelector('#SmartPlaylistConfigPage')
|
export default function (view, params) {
|
||||||
.addEventListener('viewshow', function() {
|
view.addEventListener('viewshow', function() {
|
||||||
initial_load(null);
|
|
||||||
});
|
|
||||||
document.querySelector('#SmartPlaylistConfigPage')
|
|
||||||
.addEventListener('pageshow', function() {
|
|
||||||
initial_load(null);
|
initial_load(null);
|
||||||
});
|
});
|
||||||
|
view.addEventListener('viewhide', function (_e) {});
|
||||||
|
view.addEventListener('viewdestroy', function (_e) {});
|
||||||
|
|
||||||
document.querySelector('#SmartplaylistSelection')
|
document.querySelector('#SmartplaylistSelection')
|
||||||
.addEventListener('change', function() {
|
.addEventListener('change', function() {
|
||||||
|
@ -141,3 +139,4 @@ document.querySelector('#SmartPlaylistConfigForm')
|
||||||
});
|
});
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue