JQuery-based Auto-submit for checkbox and select-filters in the symfony admin generator backend

Flattr this
Tweet this: JQuery-based Auto-submit for checkbox and select-filters in the symfony admin generator backend
Dent this: 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/203

Es sind keine Trackbacks vorhanden.


Kommentare (0)

Es sind noch keine Kommentare vorhanden.

Die Kommentare zu diesem Beitrag sind gesperrt.

You liked it ? Link it on your homepage or blog: