small fix

This commit is contained in:
rulingcom 2025-05-13 21:59:00 +08:00
parent 2c7cedd2fd
commit 22a5978e18
1 changed files with 7 additions and 7 deletions

View File

@ -2,10 +2,10 @@
<%= stylesheet_link_tag "lib/main-forms" %>
<%= stylesheet_link_tag "lib/fileupload" %>
<%= stylesheet_link_tag "lib/main-list" %>
<%= stylesheet_link_tag "select2-v4/select2.min" %>
<%= stylesheet_link_tag "select2/select2.min" %>
<% end %>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "select2-v4/select2.min" %>
<%= javascript_include_tag "select2/select2.min" %>
<% end %>
<style type="text/css">
.icons-list-2 {
@ -764,23 +764,23 @@
allowClear: true,
dataType: 'json',
delay: 250,
data: function (params) {
data: function (term) {
var query = {
q: params.term
q: term
}
return query;
},
processResults: function(data, page) {
results: function(data, page) {
return {
results: data
};
},
cache: true
},
templateResult: function(i) {
formatResult: function(i) {
return '<div>' + i.text + '</div>';
}, // Formats results in drop down
templateSelection: function(i) {
formatSelection: function(i) {
return '<div>' + i.text + '</div>';
}, //Formats result that is selected
escapeMarkup: function(m) {