Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1348 → Rev 1349

/trunk/includes/classes/OIDplusGui.class.php
212,8 → 212,7
*/
public function tabBarElement(string $id, string $title, bool $active): string {
// data-bs-toggle is for Bootstrap 5
// data-toggle is for Bootstrap 4 (InternetExplorer compatibility)
return '<li class="nav-item"><a class="nav-link'.($active ? ' active' : '').'" id="'.$id.'-tab" data-bs-toggle="tab" data-toggle="tab" href="#'.$id.'" role="tab" aria-controls="'.$id.'" aria-selected="'.($active ? 'true' : 'false').'">'.$title.'</a></li>';
return '<li class="nav-item"><a class="nav-link'.($active ? ' active' : '').'" id="'.$id.'-tab" data-bs-toggle="tab" href="#'.$id.'" role="tab" aria-controls="'.$id.'" aria-selected="'.($active ? 'true' : 'false').'">'.$title.'</a></li>';
}
 
/**
/trunk/includes/oidplus_base.js
514,14 → 514,10
});
$("#lng_flag_"+$.escapeSelector(lngid)).removeClass("picture_ghost");
 
if (isInternetExplorer()) {
// Internet Explorer has problems with sending new cookies to new AJAX requests, so we reload the page completely
window.location.reload();
} else {
// TODO: Small detail: The "Go" button also needs to be re-translated
reloadContent();
mobileNavClose();
}
 
return true; // we have handled it. Do not follow href=""
}
 
/trunk/includes/oidplus_functions.js
88,12 → 88,6
return succeed;
}
 
function isInternetExplorer() {
// see also includes/functions.inc.php
var ua = window.navigator.userAgent;
return ((ua.indexOf("MSIE ") > 0) || (ua.indexOf("Trident/") > 0));
}
 
function getMeta(metaName) {
const metas = $('meta[name='+metaName+']');
return (metas.length == 0) ? '' : metas[0].content;
174,10 → 168,8
document.cookie = cname + "=" + cvalue + expires + ";path=" + path + ";SameSite=" + samesite_policy;
}
 
 
 
function isNull(val, def) {
// For compatibility with Internet Explorer, use isNull(a,b) instead of a??b
// Deprecated. Use "val??def" instead of isNull(val,def)
if (val == null) {
// since null==undefined, this also works with undefined
return def;