create.js 394 Bytes
Newer Older
1
'use strict'
2

3
import $ from 'jquery'
4

5 6 7
module.exports = (alerts, socket) => {
  if ($('#page-type-create').length) {
    let pageEntryPath = $('#page-type-create').data('entrypath')
NGPixel's avatar
NGPixel committed
8

9
    // -> Discard
10

11 12 13 14 15 16
    $('.btn-create-discard').on('click', (ev) => {
      $('#modal-create-discard').toggleClass('is-active')
    })

    require('../components/editor.js')(alerts, pageEntryPath, socket)
  }
17
}