diff --git a/js/functions.js b/js/functions.js index 05704a8738..1c2e4504f0 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3365,8 +3365,10 @@ function indexEditorDialog(url, title, callback_success, callback_failure) $(".result_query").prepend(data.message); /*Reload the field form*/ $("#table_index").remove(); - var $temp_div = $("
").append(data.index_table); - $temp_div.find("#table_index").insertAfter("#index_header"); + $("
") + .append(data.index_table) + .find("#table_index") + .insertAfter("#index_header"); if ($("#edit_index_dialog").length > 0) { $("#edit_index_dialog").dialog("close"); }