 
   $(document).on 'click', 'a[data-toggle=dialog]', (e) =>
 
-    e.stopPropagation()
-    
     E.dialog.open app.rebuildUrl({base_url: e.currentTarget.getAttribute('href'), parameters: $(e.currentTarget).data('parameters')}),
       returns:
         success: (frame, data, status, request) ->
 
+          frame.dialog "close"
+
           if $(e.currentTarget).data('refresh')
-            Turbolinks.visit '', action: 'replace'
+            window.onLoad()
 
-          frame.dialog "close"
           return
 
         invalid: (frame, data, status, request) ->

    #     @scrollLeft -= (delta * 30)
    #     event.preventDefault()


    $("*[data-golumns='animal']").each ->
      golumn_id = $(this).data("golumns")
      window.app = new golumn(golumn_id)
      window.loadData(golumn_id, $(this))

) ekylibre, golumn, jQuery

          return
    false

  @onLoad = ->
    $("*[data-golumns='animal']").each ->
      golumn_id = $(this).data("golumns")
      ko.unapplyBindings($(document.body))
      window.app = new golumn(golumn_id)
      window.loadData(golumn_id, $(this))

  $(document).ready ->
    # $("*[data-golumns]").mousewheel (event, delta) ->
