correctly initialize multiple lookup editors

This commit is contained in:
Andreas Gohr
2016-11-03 13:25:38 +01:00
parent d682ae13b0
commit f599b80970
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ jQuery(function () {
SchemaEditor();
/* DOKUWIKI:include script/LookupEditor.js */
LookupEditor(jQuery('div.structaggregation table'));
jQuery('div.structlookup table').each(LookupEditor);
/* DOKUWIKI:include script/InlineEditor.js */
InlineEditor(jQuery('div.structaggregation table'));

View File

@ -1,8 +1,8 @@
/**
* Lookup Editor
*/
var LookupEditor = function ($table) {
var LookupEditor = function (idx, table) {
var $table = jQuery(table);
var $form = null;
var formdata;