Explorar o código

Close open inline visit-segment when opening any wizard

Vijayakrishnan %!s(int64=3) %!d(string=hai) anos
pai
achega
89ddec3c0b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      js-dev/stag-popup.js

+ 2 - 0
js-dev/stag-popup.js

@@ -93,6 +93,8 @@ function openDynamicStagPopup(_url, initer, title, updateParent, style = '', rep
     if(url.indexOf('popupmode') === -1) {
         url += (url.indexOf('?') !== -1 ? '&' : '?') + 'popupmode=1';
     }
+    // close out any open inline visit-segment
+    $('.note-section.visit-segment.edit').removeClass('edit');
     showMask();
     window.noMc = true;
     $.get(url, (_data) => {