瀏覽代碼

Merge pull request #5489 from mfilser/master

attachment popup back was broken since new attachment viewer, now fixed
Lauri Ojansivu 10 月之前
父節點
當前提交
4801e26b2f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/components/cards/attachments.js

+ 2 - 2
client/components/cards/attachments.js

@@ -39,7 +39,7 @@ Template.attachmentGallery.events({
   'click .js-rename': Popup.open('attachmentRename'),
   'click .js-rename': Popup.open('attachmentRename'),
   'click .js-confirm-delete': Popup.afterConfirm('attachmentDelete', function() {
   'click .js-confirm-delete': Popup.afterConfirm('attachmentDelete', function() {
       Attachments.remove(this._id);
       Attachments.remove(this._id);
-      Popup.back(2);
+      Popup.back();
   }),
   }),
 });
 });
 
 
@@ -501,7 +501,7 @@ BlazeComponent.extendComponent({
           if (name === DOMPurify.sanitize(name)) {
           if (name === DOMPurify.sanitize(name)) {
             Meteor.call('renameAttachment', this.data()._id, name);
             Meteor.call('renameAttachment', this.data()._id, name);
           }
           }
-          Popup.back(2);
+          Popup.back();
         },
         },
       }
       }
     ]
     ]