mirror of
https://github.com/cosmocode/dokuwiki-plugin-struct.git
synced 2025-08-13 13:37:20 +00:00

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.
23 lines
797 B
JavaScript
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'));
|
|
}
|
|
});
|
|
});
|