- Messaggi: 9
- Ringraziamenti ricevuti 0
Reset Button possible
- hokno
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
12 Anni 10 Mesi fa #415
da hokno
Reset Button possible è stato creato da 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
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
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
12 Anni 10 Mesi fa #416
da andrea_4g
Risposta da andrea_4g al 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:
Add after line 485 - the line of the submit button - the following:
Code:
echo "<input type=\"reset\" class=\"button$moduleclass_sfx\" value=\"Reset\" />";
Si prega Accesso o Crea un account a partecipare alla conversazione.
- hokno
- Autore della discussione
- Offline
- Nuovo Utente
Less
Di più
- Messaggi: 9
- Ringraziamenti ricevuti 0
12 Anni 10 Mesi fa #426
da hokno
Risposta da hokno al 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
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
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
12 Anni 10 Mesi fa #430
da andrea_4g
Risposta da andrea_4g al 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.
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.
Si prega Accesso o Crea un account a partecipare alla conversazione.
Tempo creazione pagina: 0.168 secondi