forked from cosmocode/dokuwiki-plugin-struct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
23 lines (20 loc) · 856 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
jQuery(function () {
/* DOKUWIKI:include script/functions.js */
/* DOKUWIKI:include script/EntryEditor.js */
/* DOKUWIKI:include script/SchemaEditor.js */
/* DOKUWIKI:include script/AggregationEditor.js */
/* DOKUWIKI:include script/InlineEditor.js */
/* DOKUWIKI:include script/StructFilter.js */
function init() {
EntryEditor(jQuery('#dw__editform, form.bureaucracy__plugin'));
SchemaEditor();
jQuery('div.structaggregationeditor table').each(AggregationEditor);
InlineEditor(jQuery('div.structaggregation table'));
}
jQuery(init);
jQuery(window).on('fastwiki:afterSwitch', function (evt, viewMode, isSectionEdit, prevViewMode) {
if (viewMode == "edit" || isSectionEdit) {
EntryEditor(jQuery('#dw__editform, form.bureaucracy__plugin'));
}
});
});