Browse Source

Removed lightbox that caused bugs like Maximum stack size exceeded. TODO later: Add a new way to open attachment image bigger.

Thanks to xet7 !

Related #4545
Lauri Ojansivu 3 years ago
parent
commit
dfea3d0e73
3 changed files with 14 additions and 18 deletions
  1. 11 16
      .meteor/packages
  2. 0 1
      .meteor/versions
  3. 3 1
      client/components/cards/attachments.jade

+ 11 - 16
.meteor/packages

@@ -26,9 +26,17 @@ mongo@1.15.0
 mquandalle:collection-mutations
 
 # Account system
-#wekan-ldap
-#wekan-accounts-cas
-#wekan-accounts-oidc
+accounts-password@2.3.1
+useraccounts:core
+useraccounts:flow-routing
+useraccounts:unstyled
+simple:rest-accounts-password
+wekan-ldap
+wekan-accounts-cas
+wekan-accounts-sandstorm
+wekan-accounts-lockout
+wekan-oidc
+wekan-accounts-oidc
 
 # Utilities
 check@1.3.1
@@ -62,7 +70,6 @@ rajit:bootstrap3-datepicker
 shell-server@0.5.0
 email@2.2.1
 dynamic-import@0.7.2
-
 cfs:gridfs
 rzymek:fullcalendar
 msavin:usercache
@@ -128,21 +135,9 @@ pascoual:pdfkit
 lmieulet:meteor-coverage
 meteortesting:mocha@2.0.3
 aldeed:simple-schema
-accounts-password@2.3.1
 matb33:collection-hooks
 simple:json-routes
 kadira:flow-router
 spacebars
-useraccounts:core
-useraccounts:flow-routing
-useraccounts:unstyled
 service-configuration@1.3.0
 communitypackages:picker
-simple:rest-accounts-password
-wekan-accounts-sandstorm
-wekan-accounts-lockout
-wekan-oidc
-wekan-accounts-oidc
-wekan-ldap
-wekan-accounts-cas
-czbaker:lightbox2

+ 0 - 1
.meteor/versions

@@ -43,7 +43,6 @@ coffeescript@2.4.1
 coffeescript-compiler@2.4.1
 communitypackages:picker@1.1.0
 cottz:publish-relations@2.0.8
-czbaker:lightbox2@2.7.1_1
 dburles:collection-helpers@1.1.0
 ddp@1.4.0
 ddp-client@2.5.0

+ 3 - 1
client/components/cards/attachments.jade

@@ -19,7 +19,9 @@ template(name="attachmentsGalery")
   .attachments-galery
     each attachments
       .attachment-item
-        a.attachment-thumbnail(href="{{link}}" title="{{name}}" data-lightbox="{{name}}")
+        // TODO: Add popup of attachment image later, with some swipebox or lightbox that would not add bugs
+        // a.attachment-thumbnail(href="{{link}}" title="{{name}}")
+        span.attachment-thumbnail(href="{{link}}" title="{{name}}")
           if link
             if isImage
               img.attachment-thumbnail-img(src="{{link}}")