Skip to content
Snippets Groups Projects
Commit abfa9b49 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

remove unnecessary JS

parent e5e1060a
No related branches found
No related tags found
1 merge request!8Resolve "Rewrite REBUS with django-select2"
......@@ -93,7 +93,6 @@
success: function (data) {
$(icon_id).html("<i class=\"material-icons prefix small\">" + data.icon + "</i>");
$("[name=" + next_field_name + "]").djangoSelect2({tags: data.tagging});
$("[name=" + next_field_name + "]").data('select2').selection.placeholder.text = data.placeholder;
$("[name=" + next_field_name + "]").next("span.select2:first").find("span.select2-selection__placeholder").html(data.placeholder);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment