   searchForm.submit ->
     table.find('tbody').empty()
     scroll.reset()
+    # ONLY HTML5
+    window.history.pushState("params", "", "?#{searchForm.serialize()}")
     scroll.loadNextPage()
     false
+
+  window.onpopstate =  (e) ->
+    prefillForm()
+    table.find('tbody').empty()
+    scroll.reset()
+    scroll.loadNextPage()
+    false
#    limitations under the License.

$(window).ready ->
  $("input[name='commit[exported]']").change ->
    checkbox = $(this)
    form = checkbox.closest('form')

      error: ->
        new Flash('alert').text("Couldn't update commit export status")

  prefillForm = () ->
    for own param, val of $.url().param()
      searchForm.find("[name=#{param}]").val(val.trim())

  prefillForm()

  makeURL = -> "#{table.data('url')}?#{searchForm.serialize()}"
  localeOrder = table.data('locales').split(',')

