/*
 * Copyright (C) 2011 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

import $ from 'jquery'
import CollaborationsPage from './backbone/views/CollaborationsPage.coffee'
import './jquery/index'
import '../../boot/initializers/activateKeyClicks.js'

const page = new CollaborationsPage({el: $('body')})
page.initPageState()

/*
 * Copyright (C) 2011 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

import $ from 'jquery'
import ready from '@instructure/ready'
import CollaborationsPage from './backbone/views/CollaborationsPage.coffee'
import './jquery/index'
// eslint-disable-next-line import/extensions
import '../../boot/initializers/activateKeyClicks.js'

ready(() => {
  const page = new CollaborationsPage({el: $('body')})
  page.initPageState()
})

Fix unresponsive button on collaborations page
Fix unresponsive button on collaborations page

fixes VICE-2428
flag=none

Test Plan:
 - see repro steps on linked ticket
  - should not be able to repro
 - go to /courses/<course_id>/collaborations
 - click the "add collaboration" button
 - if button is responsive refreshpage
 - repeat 15 times
 - if button is unresponsive leave a QA-1 and a comment

Change-Id: Ia834d6dd5371c38d0ee6bd6d9fb422c12f94d763
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/284877
Tested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com>
Reviewed-by: Omar Soto-Fortuño <2ca100155bc0669318a7e6f3850629c7667465e1@instructure.com>
Product-Review: Omar Soto-Fortuño <2ca100155bc0669318a7e6f3850629c7667465e1@instructure.com>
QA-Review: Jeffrey Johnson <7a0f98bfe168bc29d5611ba0275e88567b492abc@instructure.com>
