Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Reset filters 09 Jun 2014 10:48 #12469

  • pbianco
  • pbianco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Hi,
I cannot reset the filter content by using the "x" button.
Firebug reports:

TypeError: Joomla.resetFilters is not a function


If I try on Sanbox, it works.

Can you, please, help me on this?
Thanks and regards

Please Log in or Create an account to join the conversation.

Last edit: by pbianco.

Reset filters 03 Jul 2014 13:08 #12499

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Joomla.resetFilters is furnished by JDom.

It is localized in dom/assets/joomla/joomla.js
This asset should be loaded automatically when you use the search control.

Can you tell me wich PTL ? (Project / Table / Layout)
So I will check...

Is it failling in others pages or only in one particular page of your component ?
Did you tried to download the last release of JDom ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Reset filters 04 Jul 2014 15:53 #12503

  • pbianco
  • pbianco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Hi,
the problem is on all filters of my project Club4000.
iBut it works on sandbox.

I have joomla.js installed in the folder libraries/jdom/assets/joomla/.

Thanks and regards

Please Log in or Create an account to join the conversation.

Reset filters 04 Jul 2014 17:19 #12504

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I just have checked and it works for me on fresh install 3.3.1

You must check that this joomla.js is correctly loaded in the page.
Open the developper tools and check this source.
inside the file, you can see that Joomla.resetFilters() is a new fuction that overloads the Joomla core class.

Maybe the native class file is loaded after It could be the only reason for it not to work.
Can you give me clue of what you find after checking the JS sources ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Reset filters 05 Jul 2014 17:54 #12505

  • pbianco
  • pbianco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Hi,
I am using Joomla 2.5.
joomla.js is loaded on the page.
Another information: when I activate the search button, the console reports:

ReferenceError: Joomla is not defined

referring to joomla.js line 1.

Please Log in or Create an account to join the conversation.

Reset filters - CLOSED 26 Aug 2014 12:18 #12604

  • pbianco
  • pbianco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 47
  • Thank you received: 2
Hi,
just to inform you that I have completely reinstalled the component and now it works!
Regards

Please Log in or Create an account to join the conversation.

Last edit: by pbianco.
  • Page:
  • 1
Time to create page: 0.062 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started