diff --git a/app/views/admin/curations/_form.html.erb b/app/views/admin/curations/_form.html.erb index 8d17f22..83ed3c3 100644 --- a/app/views/admin/curations/_form.html.erb +++ b/app/views/admin/curations/_form.html.erb @@ -760,7 +760,7 @@ placeholder: "<%= t("curation.search_entries") %>", ajax: { type: 'get', - url: "/admin/universal_tables/get_entries", + url: "", allowClear: true, dataType: 'json', delay: 250, @@ -781,10 +781,8 @@ return '
' + i.text + '
'; }, // Formats results in drop down templateSelection: function(i) { - console.log(i); return '
' + i.text + '
'; }, //Formats result that is selected - // dropdownCssClass: "bigdrop", // apply css that makes the dropdown taller escapeMarkup: function(m) { return m; } // we do not want to escape markup since we are displaying html in results @@ -794,7 +792,7 @@ if($(this).val()){ selectedUTable = $(this).val(); parent.find(".section_type_ut_entries").show(); - select2Options.ajax.url = select2Options.ajax.url + "?uid=" + selectedUTable; + select2Options.ajax.url = "/admin/universal_tables/get_entries?uid=" + selectedUTable; parent.find('.section_type_ut_entries input.select2').select2(select2Options); }else{ parent.find(".section_type_ut_entries").hide();