mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en editar plantillas
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
let TableEditor = function (
|
||||
table,
|
||||
url,
|
||||
url = "",
|
||||
headers,
|
||||
idSrc,
|
||||
fields) {
|
||||
@ -16,15 +16,26 @@ let TableEditor = function (
|
||||
|
||||
this.init = function () {
|
||||
|
||||
this.editor = new $.fn.dataTable.Editor( {
|
||||
ajax: {
|
||||
url: url,
|
||||
headers: headers,
|
||||
},
|
||||
table : table,
|
||||
idSrc: idSrc,
|
||||
fields: fields,
|
||||
});
|
||||
if (url == "") {
|
||||
this.editor = new $.fn.dataTable.Editor({
|
||||
table: table,
|
||||
idSrc: idSrc,
|
||||
fields: fields,
|
||||
});
|
||||
}
|
||||
|
||||
else {
|
||||
this.editor = new $.fn.dataTable.Editor({
|
||||
ajax: {
|
||||
url: url,
|
||||
headers: headers,
|
||||
},
|
||||
table: table,
|
||||
idSrc: idSrc,
|
||||
fields: fields,
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user