Browse Source

Fix adding list at mobile view, every list had a sort number 1

- html class list doesn't exist at mobile view. class js-list exists on
  mobile and desktop view
Martin Filser 3 năm trước cách đây
mục cha
commit
fa9641ba7b

+ 1 - 1
client/components/swimlanes/swimlanes.js

@@ -243,7 +243,7 @@ BlazeComponent.extendComponent({
             Lists.insert({
             Lists.insert({
               title,
               title,
               boardId: Session.get('currentBoard'),
               boardId: Session.get('currentBoard'),
-              sort: $('.list').length,
+              sort: $('.js-list').length,
               type: this.isListTemplatesSwimlane ? 'template-list' : 'list',
               type: this.isListTemplatesSwimlane ? 'template-list' : 'list',
               swimlaneId: this.currentBoard.isTemplatesBoard()
               swimlaneId: this.currentBoard.isTemplatesBoard()
                 ? this.currentSwimlane._id
                 ? this.currentSwimlane._id