Reset Button possible

More
12 years 10 months ago #415 by hokno
Reset Button possible was created by hokno
Hello,

could it be possible to have a "Reset" button beside the "search button" on the CP Search Modul?

So that it is easy to reset all filter / selected tags.

Or did somebody know which file I have to change for this "feature"

Thanks for an answer

Best regards

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

More
12 years 10 months ago #416 by andrea_4g
Replied by andrea_4g on topic Re: Reset Button possible
You have to modify file modules/mod_cpsearch/mod_cpsearch.php
Add after line 485 - the line of the submit button - the following:
Code:
echo "<input type=\"reset\" class=\"button$moduleclass_sfx\" value=\"Reset\" />";

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

More
12 years 10 months ago #426 by hokno
Replied by hokno on topic Re: Reset Button possible
Hello Andrea,

thank you for the answer.

But the solution you have written works only for ListBox Entrys.

All Check Box entries are still selected if I push the reset button.

Maybe you know what I have to do that the Listbox values and the Check Box values are will bee reset with the button?

Best regards

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

More
12 years 10 months ago #430 by andrea_4g
Replied by andrea_4g on topic Re: Reset Button possible
We tested this - very minimal - solution with Firefox, Chrome and IE7.
In all circumstances the reset button worked as predicted: restore select boxes and checkboxes to their original state, that is the state they were when the page loaded, reverting changes made by the user.

If you want all fields to be set to unchecked/unselected or restored to the original state as configured in the backend, some javascript is required.

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

Time to create page: 0.129 seconds