mirror of
https://github.com/cosmocode/dokuwiki-plugin-struct.git
synced 2025-08-15 21:43:17 +00:00
fixes #351 based on zioth's suggestion
This commit is contained in:
25
script.js
25
script.js
@ -1,15 +1,22 @@
|
||||
jQuery(function () {
|
||||
jQuery(function() {
|
||||
/* DOKUWIKI:include script/functions.js */
|
||||
|
||||
/* DOKUWIKI:include script/EntryEditor.js */
|
||||
EntryEditor(jQuery('#dw__editform, form.bureaucracy__plugin'));
|
||||
|
||||
/* DOKUWIKI:include script/SchemaEditor.js */
|
||||
SchemaEditor();
|
||||
|
||||
/* DOKUWIKI:include script/LookupEditor.js */
|
||||
jQuery('div.structlookup table').each(LookupEditor);
|
||||
|
||||
/* DOKUWIKI:include script/InlineEditor.js */
|
||||
InlineEditor(jQuery('div.structaggregation table'));
|
||||
|
||||
function init() {
|
||||
EntryEditor(jQuery('#dw__editform, form.bureaucracy__plugin'));
|
||||
SchemaEditor();
|
||||
jQuery('div.structlookup table').each(LookupEditor);
|
||||
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'));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user