瀏覽代碼

fix(toolbar): etherpad button should say open when etherpad is hidden (#2769)

master
virtuacoplenny 7 年之前
父節點
當前提交
38c8a41634
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      modules/UI/etherpad/Etherpad.js

+ 6
- 0
modules/UI/etherpad/Etherpad.js 查看文件

@@ -155,6 +155,9 @@ class Etherpad extends LargeContainer {
155 155
                 document.body.style.background = '#eeeeee';
156 156
                 $iframe.css({ visibility: 'visible' });
157 157
                 $container.css({ zIndex: 2 });
158
+
159
+                APP.store.dispatch(setDocumentEditingState(true));
160
+
158 161
                 resolve();
159 162
             });
160 163
         });
@@ -173,6 +176,9 @@ class Etherpad extends LargeContainer {
173 176
             $iframe.fadeOut(300, () => {
174 177
                 $iframe.css({ visibility: 'hidden' });
175 178
                 $container.css({ zIndex: 0 });
179
+
180
+                APP.store.dispatch(setDocumentEditingState(false));
181
+
176 182
                 resolve();
177 183
             });
178 184
         });

Loading…
取消
儲存