white label hiding too much
Posted: Tue 31. Jan 2017, 13:43
Hello
I use this javascript to hide the section "news, changelog and whitelabel" from panel
It seems to work too well because is hiding even let's encrypt in SSL section.
Any idea how to solve it?
I use this javascript to hide the section "news, changelog and whitelabel" from panel
Code: Select all
$('document').ready( function () {
var url = window.location.href;
// il link whitelabel lo nascondo da tutte le pagine
$(".sidebar ul li a:contains('White Label')").closest('li').hide();
$(".sidebar ul li a:contains('Брендирование')").closest('li').hide();
$(".sidebar ul li a:contains('Whitelabel')").closest('li').hide();
if (url.indexOf("admin_index") >= 0)
{
// remove news
$("div.content th:contains('News')").closest('div').remove();
$("div.content th:contains('новости')").closest('div').remove();
// rimuovo link changelog
$("div.content a:contains('See history of changes')").remove();
$("div.content a:contains('Änderungsprotokoll anzeigen')").remove();
$("div.content a:contains('История изменений')").remove();
}
});
Any idea how to solve it?