Files
dokuwiki-plugin-struct/script.js
Andreas Gohr 308cc83fd5 refactoring names
To avoid confusion with the Lookup type, the three different ways of
accessing a schema have now the following names:

* page data - for revisioned struct data attached to a page
* serial data - for an unrevisioned list of struct data attached to a
                page
* global data - for an unrevisioned list of struct data not attached to
                any page (formaly known as lookup schema)

The editor mechanism used for serial and global data is now called
AggregationEditor

Some reference to lookup schemas is still in the bureaucracy support
part.
2020-05-14 13:05:03 +02:00

23 lines
797 B
JavaScript

jQuery(function() {
/* DOKUWIKI:include script/functions.js */
/* DOKUWIKI:include script/EntryEditor.js */
/* DOKUWIKI:include script/SchemaEditor.js */
/* DOKUWIKI:include script/LookupEditor.js */
/* DOKUWIKI:include script/InlineEditor.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'));
}
});
});