Skip to content

Commit e8799dd

Browse files
authored
Merge pull request #928 from it-at-m/feat-zmskvr-78-aufrufe-in-bearbeitung-hotfix
feat(ZMSKVR-78) Tabelle für Offene-Aufrufe immer geschlossen
2 parents 83a3b91 + f72701b commit e8799dd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

zmsadmin/js/block/queue/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,11 @@ class View extends BaseView {
3939

4040

4141
load(withCalled = false) {
42-
if (withCalled === false) {
43-
const storedState = localStorage.getItem('calledPanelOpen');
44-
withCalled = (storedState === 'true');
45-
}
46-
4742
const url = `${this.includeUrl}/queueTable/?selecteddate=${this.selectedDate}&withCalled=${withCalled ? 1 : 0}`;
4843

4944
return this.loadContent(url, 'GET', null, null, this.showLoader)
5045
.then(() => {
51-
const storedState = localStorage.getItem('calledPanelOpen');
52-
if (storedState === 'true') {
46+
if (withCalled) {
5347
$('#called-appointments').addClass('active');
5448
$('#called-appointments').next('.accordion-panel').css('display', 'block');
5549
this.withCalled = true;
@@ -85,7 +79,6 @@ class View extends BaseView {
8579
this.onResetProcess(ev);
8680
}).on('click', '#called-appointments', (ev) => {
8781
this.withCalled = ! this.withCalled
88-
localStorage.setItem('calledPanelOpen', this.withCalled ? 'true' : 'false');
8982
if (this.withCalled) {
9083
this.load(true)
9184
}

0 commit comments

Comments
 (0)