This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Trends load error
#3
I like more widgets than plans for trend viewing so I've prepared such script for deleting unnecessary widgets if first page is for example 173(homepage of specific user):
Code:
// Delete unnecessary widgets
$(function(){
 if (!$('body').hasClass('usermode')) {
   return;
 }
 
if (currentPlanId == 173){
$('#widget-58,#widget-59,#widget-61,#widget-62,#widget-63,#widget-64,#widget-65,#widget-66,#widget-67,#widget-68,#widget-69,#widget-71,#widget-73,#widget-74,#widget-75,#widget-76,#widget-77,#widget-79,'+
  '#widget-80,#widget-81,#widget-82,#widget-84,#widget-85,#widget-86,#widget-88,#widget-89,#widget-91,#widget-92,#widget-93,#widget-94,#widget-95,#widget-96,#widget-97,#widget-98,#widget-99,#widget-100,'+
  '#widget-101,#widget-102,#widget-103,#widget-104,#widget-105,#widget-106,#widget-107,#widget-108,#widget-109,#widget-166,#widget-167,#widget-168,#widget-169,#widget-170,#widget-171,#widget-378,'+
  '#widget-379,#widget-387,#widget-388,#widget-393,#widget-394,#widget-396,#widget-397').remove()  
   } else if(currentPlanId == 1){
// do nothing
};
 
 });
Reply


Messages In This Thread
Trends load error - by buuuudzik - 20.02.2017, 08:10
RE: Trends load error - by admin - 20.02.2017, 08:22
RE: Trends load error - by buuuudzik - 20.02.2017, 16:48

Forum Jump: