Revert "Merge branch 'feat/add-chat-presupuesto-cliente' into 'main'"

This reverts merge request !352
This commit is contained in:
Alvaro
2024-10-23 05:18:00 +00:00
parent 47e6cbb5f7
commit 7ce2723a09
147 changed files with 5666 additions and 9809 deletions

View File

@ -4,11 +4,9 @@
* @param {String} url
* @param {String} placeholder
*/
let ClassSelect = function (domItem, url, placeholder, allowClear = false, params = {}) {
let ClassSelect = function (domItem, url, placeholder, allowClear = false) {
this.url = url;
this.item = domItem;
this.params = params;
this.config = {
placeholder: placeholder,
allowClear: allowClear,
@ -17,18 +15,10 @@ let ClassSelect = function (domItem, url, placeholder, allowClear = false, param
url: () => {
return this.url;
},
data: (params) => {
let q = $.trim(params.term);
let d = {
q: q,
page: params.page || 1,
};
for (let key in this.params) {
d[key] = this.params[key];
}
return d;
data: function (params) {
return {
q: $.trim(params.term),
};
},
processResults: function (data) {
return {
@ -58,9 +48,6 @@ let ClassSelect = function (domItem, url, placeholder, allowClear = false, param
this.reset = function () {
this.item.val(null).trigger("change");
};
this.setParams = function(params){
this.params = params;
};
this.getVal = function () {
return this.item.val();
};