wikijs-fork/client/js/pages/view.js

13 lines
347 B
JavaScript
Raw Normal View History

'use strict'
import $ from 'jquery'
module.exports = (alerts) => {
if ($('#page-type-view').length) {
let currentBasePath = ($('#page-type-view').data('entrypath') !== 'home') ? $('#page-type-view').data('entrypath') : ''
require('../modals/create.js')(currentBasePath)
require('../modals/move.js')(currentBasePath, alerts)
}
2017-02-09 01:52:37 +00:00
}