mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-12 16:26:07 -06:00
select2 is not a function error fix
This commit is contained in:
parent
fdb1b970f0
commit
0fb0727091
@ -1,4 +1,5 @@
|
||||
$( document ).ready(function() {
|
||||
if ($("select[name='parent_category']").length ) {
|
||||
$("select[name='parent_category']").select2({
|
||||
ajax: {
|
||||
url: window.location.origin + "/keySearch",
|
||||
@ -30,4 +31,6 @@ $( document ).ready(function() {
|
||||
var data = e.params.data;
|
||||
$("input[name='category_name']").val(data.text);
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user