Request Settings data on opening modal
to counter different browser windows having different settings
This commit is contained in:
parent
9a7733c9a3
commit
2e96fa9e1e
1 changed files with 4 additions and 0 deletions
|
|
@ -210,6 +210,10 @@ function SettingsViewModel(loginStateViewModel, usersViewModel) {
|
|||
self.printer_invertY = self.koInvertAxis('y');
|
||||
self.printer_invertZ = self.koInvertAxis('z');
|
||||
|
||||
self.onSettingsShown = function() {
|
||||
self.requestData();
|
||||
};
|
||||
|
||||
self.requestData = function(callback) {
|
||||
$.ajax({
|
||||
url: API_BASEURL + "settings",
|
||||
|
|
|
|||
Loading…
Reference in a new issue