change summernote to bs5

This commit is contained in:
2024-03-14 16:07:17 +07:00
parent 2de34d2c86
commit 0a67f7549c
6 changed files with 10 additions and 233 deletions
File diff suppressed because one or more lines are too long
+7 -6
View File
@@ -68,7 +68,7 @@ var FoniaJS = {
setTimeout(function(){self.location = FoniaJS.WEB_PATH;}, 1600);
return false;
}
if (apop.php == "") {
if (apop.php == "" || !window[apop.func]) {
this.showErrorLocale("Fonia.page404");
return false;
}
@@ -1083,16 +1083,17 @@ if (jQuery.fn.dataTable) {
return moment(val, "DD.MM.YY HH:mm:ss").format("X");
});
}
jQuery.fn.dataTable.ext.order['dom-select'] = function( settings, col ){
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
return $('select', td).val();
});
}
jQuery.fn.dataTable.ext.order['dom-checkbox'] = function( settings, col ){
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
return $('input', td).prop('checked') ? '1' : '0';
});
}
jQuery.fn.dataTable.ext.order['dom-select-zerolast'] = function( settings, col ){
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
var _val = $('select', td).val();
return (_val==0) ? Number.MAX_SAFE_INTEGER : _val;
});
}
jQuery.extend(jQuery.fn.dataTable.ext.classes, {
sLengthSelect: "form-select text-center",
});
File diff suppressed because one or more lines are too long