update improvment dec 2023

This commit is contained in:
2023-12-16 15:21:07 +07:00
parent debc10869e
commit b84200f7ef
3 changed files with 14 additions and 8 deletions
+6 -1
View File
@@ -133,6 +133,10 @@ var FoniaJS = {
FoniaJS.callMenu(linkid);
if (sbar.length > 0) { sbar.modal('toggle'); }
});
$(".slink").click(function(e){
var ddown = $(this).closest('.dropdown-menu');
if (ddown.length > 0) { ddown.dropdown('toggle'); }
});
if ($("#HomeLink").length){
$("#HomeLink").click(function(){
this.closeAllWindows();
@@ -385,6 +389,7 @@ var FoniaJS = {
}
});
$('.option-tags').each(function() {//oke
if (!jQuery.isFunction(jQuery.fn.select2)) return;
var _opts = {tags: false, dropdownAutoWidth: true, width: 'auto', theme: 'bootstrap-5'};
var _dmodal = $(this).closest('div.modal');
if ($(_dmodal).hasClass('modal')) _opts.dropdownParent = _dmodal;
@@ -946,7 +951,7 @@ Request.JSONF = function(options){//oke
$(this).parent().addClass(span);
});
// create hover title for awr class td
$('#'+ini.id+'Tabel tbody td.awr').each(function(){
$('#'+ini.id+'Tabel tbody td[class*="awr"]').each(function(){
$(this).attr('title', $(this).html().replace(/<br\s*[\/]?>/gi,'\n').replace(/(<([^>]+)>)/gi,''));
});
// generate pagelength option