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
File diff suppressed because one or more lines are too long
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); setTimeout(function(){self.location = FoniaJS.WEB_PATH;}, 1600);
return false; return false;
} }
if (apop.php == "") { if (apop.php == "" || !window[apop.func]) {
this.showErrorLocale("Fonia.page404"); this.showErrorLocale("Fonia.page404");
return false; return false;
} }
@@ -1083,16 +1083,17 @@ if (jQuery.fn.dataTable) {
return moment(val, "DD.MM.YY HH:mm:ss").format("X"); 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 ){ jQuery.fn.dataTable.ext.order['dom-checkbox'] = function( settings, col ){
return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){ return this.api().column( col, {order:'index'} ).nodes().map( function( td, i ){
return $('input', td).prop('checked') ? '1' : '0'; 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, { jQuery.extend(jQuery.fn.dataTable.ext.classes, {
sLengthSelect: "form-select text-center", sLengthSelect: "form-select text-center",
}); });
File diff suppressed because one or more lines are too long
-8
View File
@@ -130,14 +130,6 @@ final class App {
$href1 = $_prot . $_host .'/'; $href1 = $_prot . $_host .'/';
$href2 = ""; $href2 = "";
} }
/*if ($this->apps['PARENT_SUB']==true) {
$tmp_url = parse_url($this->apps['PARENT_SITE']);
$href1 = $tmp_url['scheme'] . "://";
$href2 = ".".$tmp_url['host'];
} else {
$href1 = $this->apps['PARENT_SITE'].'/';
$href2 = "";
}*/
} }
foreach ($this->auser['MENU_MODUL'] as $modul) { foreach ($this->auser['MENU_MODUL'] as $modul) {
$href = $href1.$modul['APP_PATH'].$href2; $href = $href1.$modul['APP_PATH'].$href2;