JQuery-based Auto-submit for checkbox and select-filters in the symfony admin generator backend
Datum: 15.08.2010 12:51:13
Nice and simple usability-boost for the filtering in the backend if you use it often and don't want to press the filter-button each time.
But it too can be annoying if you often filter based on date-fields and don't have a datepicker, because selecting a range is 6 changes and each time it get's submitted.
<script type="text/javascript">
$(document).ready(function() {
$('.sf_admin_filter select, .sf_admin_filter input[type="checkbox"]').attr('onchange', 'this.form.submit()');
});
</script>
Trackbacks (0)
Trackbackurl: http://www.robo47.net/trackback/blogentry/203Es sind keine Trackbacks vorhanden.
You liked it ? Link it on your homepage or blog:



Benjamin Steininger ist Webentwickler auf der Suche nach einem neuen Job und
photographiert sehr gerne. Er beschäftigt sich viel mit dem Internet, PHP, Symfony, Testing und hat einen
Kommentare (0)
Es sind noch keine Kommentare vorhanden.
Die Kommentare zu diesem Beitrag sind gesperrt.